Skip to content

Commit

Permalink
fixed example test
Browse files Browse the repository at this point in the history
  • Loading branch information
lmittmann committed Aug 21, 2024
1 parent b3891b8 commit e9072a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions func_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e9072a6

Please sign in to comment.