`

ABI编码函数

 
阅读更多
1. abi.encode()returns(bytes):对给定参数进行编码
2. abi.encodePacked()returns(bytes):对给定参数进行紧打包编码
3. abi.encodeWithSelector(bytes4 selector,...) returns(bytes):对给定参数进行编码,并以给定的函数选择器作为起始的4字段数据一起返回
4. abi.encodeWithSignature(string signature,...) returns (bytes):等价于abi.encodeWithSelector(bytes4(keccak256(signature),...)
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics