We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc7e0fe commit 7ce7c39Copy full SHA for 7ce7c39
accounts/abi/pack.go
@@ -73,7 +73,7 @@ func packNum(value reflect.Value) []byte {
73
case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:
74
return U256(big.NewInt(value.Int()))
75
case reflect.Ptr:
76
- return U256(value.Interface().(*big.Int))
+ return U256(new(big.Int).Set(value.Interface().(*big.Int)))
77
default:
78
panic("abi: fatal error")
79
}
0 commit comments