good morning!!!!

Skip to content
Snippets Groups Projects
Commit 7ce7c396 authored by Marius van der Wijden's avatar Marius van der Wijden Committed by Guillaume Ballet
Browse files

accounts/abi/bind: fix destructive packing of *big.Int (#20412)

parent fc7e0fe6
Branches
Tags
No related merge requests found
...@@ -73,7 +73,7 @@ func packNum(value reflect.Value) []byte { ...@@ -73,7 +73,7 @@ func packNum(value reflect.Value) []byte {
case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64: case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:
return U256(big.NewInt(value.Int())) return U256(big.NewInt(value.Int()))
case reflect.Ptr: case reflect.Ptr:
return U256(value.Interface().(*big.Int)) return U256(new(big.Int).Set(value.Interface().(*big.Int)))
default: default:
panic("abi: fatal error") panic("abi: fatal error")
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment