Skip to content

Commit 1aaf43d

Browse files
committed
update encode slot capacity
1 parent 023e10d commit 1aaf43d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

data/abi/abi_encode.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ func tupleEncoding(v Value) ([]byte, error) {
258258
}
259259

260260
// concat everything as the abi encoded bytes
261-
encoded := make([]byte, 0)
261+
encoded := make([]byte, 0, headLength+tailCurrLength)
262262
for _, head := range heads {
263263
encoded = append(encoded, head...)
264264
}

0 commit comments

Comments
 (0)