Skip to content

Commit

Permalink
fix invalid safeguard for solidity types
Browse files Browse the repository at this point in the history
  • Loading branch information
iuwqyir committed Dec 4, 2024
1 parent fa85f6b commit 1618c92
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions internal/common/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,21 +143,10 @@ func cleanType(param string) string {

// isType checks if a word is a Solidity type
func isType(word string) bool {
if strings.HasPrefix(word, "uint") || strings.HasPrefix(word, "int") {
return true
}
types := map[string]bool{
"uint": true,
"int": true,
"uint8": true,
"int8": true,
"uint16": true,
"int16": true,
"uint32": true,
"int32": true,
"uint64": true,
"int64": true,
"uint128": true,
"int128": true,
"uint256": true,
"int256": true,
"address": true,
"bool": true,
"string": true,
Expand Down

0 comments on commit 1618c92

Please sign in to comment.