From 1618c9247dc76068e5026428bfcf1406cffa16f7 Mon Sep 17 00:00:00 2001 From: iuwqyir Date: Wed, 4 Dec 2024 20:17:05 +0200 Subject: [PATCH] fix invalid safeguard for solidity types --- internal/common/utils.go | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/internal/common/utils.go b/internal/common/utils.go index 9812cf6..6fe822e 100644 --- a/internal/common/utils.go +++ b/internal/common/utils.go @@ -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,