Closed LBJyang closed 1 year ago
原教程内的代码并不能按预期执行。Throttle函数有点多余,修改后很清晰直观。比如console.log(parsedTx)语句并不能直接输出解码tx,iface.getFunction("transfer").selector并不能获取到函数选择器,iface.getFunction("transfer")返回的是名为 "transfer" 的函数的对象,没有seletor属性。 已修改js等文件。
原教程内的代码并不能按预期执行。Throttle函数有点多余,修改后很清晰直观。比如console.log(parsedTx)语句并不能直接输出解码tx,iface.getFunction("transfer").selector并不能获取到函数选择器,iface.getFunction("transfer")返回的是名为 "transfer" 的函数的对象,没有seletor属性。 已修改js等文件。