Skip to content

v0.17.0

Compare
Choose a tag to compare
@lmittmann lmittmann released this 23 Aug 07:28
· 10 commits to main since this release
0afaee3

This release simplifies the way RPC method return values are initialized. Types like big.Int, types.Transaction, types.Receipt, types.Header, and types.Block, that are commonly used with pointers, no longer need to be initialized. Instead you can pass a pointer to a pointer of the type.

new (>= v0.17.0) old
var balance *big.Int
client.Call(
    eth.Balance(..).Returns(&balance),
)
var balance big.Int
client.Call(
    eth.Balance(..).Returns(&balance),
)

// or

balance := new(big.Int)
client.Call(
    eth.Balance(..).Returns(balance),
)

What's Changed

⚠️ Breaking Changes ⚠️

Full Changelog: v0.16.9...v0.17.0