Skip to content

Commit 2aeba67

Browse files
committed
fix solc sig
1 parent b935000 commit 2aeba67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/convert/solc_sig.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ func getSignatureFromInterface(_interface string) (_4BytesSig string, hash commo
5959
utils.PrintlnStdErr("INF: Interface")
6060
fmt.Println(_interface)
6161

62-
if !regexp.MustCompile(`^\w+\s*\(.+\)$`).MatchString(_interface) {
62+
if !regexp.MustCompile(`^\w+\s*\(.*\)$`).MatchString(_interface) {
6363
err = fmt.Errorf("invalid EVM method/event interface, require format: `methodName(...)`")
6464
return
6565
}

0 commit comments

Comments
 (0)