Closed jackleeio closed 11 months ago
1.Ethers v6中获取函数选择器为:interface.getFunction("funName").selector
interface.getFunction("funName").selector
参考:https://github.com/ethers-io/ethers.js/discussions/3893
2.打印解码交易详情时加入handleBigInt函数,避免JSON.stringify转换数据时出现BigInt类型报错
handleBigInt
JSON.stringify
BigInt
> `打印解码交易详情: ${JSON.stringify( > ^ > > TypeError: Do not know how to serialize a BigInt > at JSON.stringify (<anonymous>)
3.替换一些v6中已弃用的方法
1.Ethers v6中获取函数选择器为:
interface.getFunction("funName").selector
2.打印解码交易详情时加入
handleBigInt
函数,避免JSON.stringify
转换数据时出现BigInt
类型报错3.替换一些v6中已弃用的方法