- Add
repl.fork
to start run and use an Anvil instance as a fork of the current URL - Add
repl.startPrank
/repl.stopPrank
to start/stop impersonating an address - Add
FUNC.traceCall
method to contract functions - Add
abi.decodeData
to decode function calldata and errors from any known ABI
- Encode
FixedBytes
as with zero padding on the left instead of the right
- Decode logs returned by
Transaction.getReceipt()
when available in ABI - Add support for array concatenation
- Add
array.filter
function - Add
array.reduce
function - Add support for bitwise operators
- [EXPERIMENTAL] Add support for anonymous functions
- [EXPERIMENTAL] Add support for fetching events
- Add support for negative indices in arrays and slices
- Fix
abi.decode
for nested types - Fix completion not triggering right after
[
- Drop
Receipt
type and useNamedTuple
instead
- Add
repl.block()
- Allow to customize more variables through call options:
block
- block number to use for the callfrom
- address to use asmsg.sender
gasLimit
- gas limit to use for the transactionmaxFee
- maximum fee to pay for the transactionpriorityFee
- priority fee to pay for the transactiongasPrice
- gas price to use for the (legacy) transaction
- Allow to select version of Eclair when installing using install script
- Add
repl.loadKeystore
to load keystore from a file created bycast
- Allow conversion between different fixed-size bytes types (e.g. bytes32 -> bytes4 or vice-versa)
- Allow slicing on bytes and strings
- Fix parsing of fix bytes with less than 32 bytes (e.g. bytes4)
- Fix display of functions that don't check argument types
- Add support for bytes<->uint256 conversion
- Fix bug with
abi.encode
andabi.decode
that caused the functions to fail/return incorrect values