| title | @abi.encodePacked |
|---|
ABI non-standard packed encoding, matching Solidity's abi.encodePacked.
Returns: bytes
@abi.encodePacked(types ...values)
| Name | Type | Description |
|---|---|---|
types |
string |
Comma-separated Solidity types (e.g. "address,uint256") |
[...values] |
any |
Values to encode, one per type |
# Pack an address and amount
set $packed @abi.encodePacked("address,uint256" @me 1e18)
print $packed
- @abi.encode — standard ABI encoding
- @abi.encodeCall — ABI-encode a function call
- @abi.decode — decode ABI-encoded data