Skip to content

Commit 5b60ae6

Browse files
committed
minor
1 parent 1aaf43d commit 5b60ae6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

data/abi/abi_type.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -223,9 +223,7 @@ func parseTupleContent(str string) ([]string, error) {
223223

224224
// str should noe have leading/tailing comma
225225
if strings.HasSuffix(str, ",") || strings.HasPrefix(str, ",") {
226-
return []string{},
227-
fmt.Errorf("parsing error: cannot replace tuple segment back: " +
228-
"number of empty placeholders do not match with number of sub-tuples")
226+
return []string{}, fmt.Errorf("parsing error: tuple content should not start with comma")
229227
}
230228

231229
// str should not have consecutive commas contained

0 commit comments

Comments
 (0)