From e9072a65a36a906d32b5d9ed1469758e52eff3c7 Mon Sep 17 00:00:00 2001 From: lmittmann Date: Wed, 21 Aug 2024 06:41:30 +0200 Subject: [PATCH] fixed example test --- func_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/func_test.go b/func_test.go index 678c3a4b..4b3ee652 100644 --- a/func_test.go +++ b/func_test.go @@ -38,9 +38,9 @@ func ExampleNewFunc_balanceOf() { // ABI-decode the functions output. var ( output = w3.B("0x000000000000000000000000000000000000000000000000000000000000c0fe") - amount = new(big.Int) + amount *big.Int ) - funcBalanceOf.DecodeReturns(output, amount) + funcBalanceOf.DecodeReturns(output, &amount) fmt.Printf("balanceOf returns: %v\n", amount) // Output: // balanceOf input: 0x70a08231000000000000000000000000ab5801a7d398351b8be11c439e05c5b3259aec9b