From 8209b9cb052cf526f363d8185c988926773621e4 Mon Sep 17 00:00:00 2001 From: cui Date: Tue, 26 May 2026 16:29:00 +0800 Subject: [PATCH] accounts/abi: forEachUnpack ABI error message arguments swapped (#35046) --- accounts/abi/unpack.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/accounts/abi/unpack.go b/accounts/abi/unpack.go index 905b5ce629..96e5d5d936 100644 --- a/accounts/abi/unpack.go +++ b/accounts/abi/unpack.go @@ -154,7 +154,7 @@ func forEachUnpack(t Type, output []byte, start, size int) (interface{}, error) return nil, fmt.Errorf("cannot marshal input to array, size is negative (%d)", size) } if start+32*size > len(output) { - return nil, fmt.Errorf("abi: cannot marshal into go array: offset %d would go over slice boundary (len=%d)", len(output), start+32*size) + return nil, fmt.Errorf("abi: cannot marshal into go array: offset %d would go over slice boundary (len=%d)", start+32*size, len(output)) } // this value will become our slice or our array, depending on the type