v0.17.0
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
- workflows: test with Go 1.23 by @lmittmann in #181
- w3vm: fix txIndex during rollback by @wesraph in #182
- w3vm: fix potential wrong logs after rollback by @lmittmann in #183
- doc: new structure (still WIP) by @lmittmann in #159
⚠️ Breaking Changes ⚠️
- module: double indirection by @lmittmann in #178
- w3vm: dropped deprecated
Receipt.GasLimit
by @lmittmann in #184 - w3types: dropped deprecated
Caller
andCallerFactory
interface by @lmittmann in #185
Full Changelog: v0.16.9...v0.17.0