重新设计:重新设计WalletReactor以提高效率。
- 删除WalletReactor.ts中不必要的控制台日志语句 - 在WalletReactor.ts中降低燃气估计公差 - 整体代码清理和优化 - 改善代码可读性和可维护性。
This commit is contained in:
parent
26ea64b9f6
commit
df6cd9ba59
@ -83,10 +83,10 @@ export class WalletReactor {
|
||||
let gas = await this.contract.methods
|
||||
.executeBatch(operation.targets, operation.values, operation.datas, operation.predecessor, operation.salt)
|
||||
.estimateGas({ from: this.account.address })
|
||||
console.log(gas)
|
||||
gas = gas | 0
|
||||
let res = await this.contract.methods
|
||||
.executeBatch(operation.targets, operation.values, operation.datas, operation.predecessor, operation.salt)
|
||||
.send({ gas: 1000000 })
|
||||
.send({ gas })
|
||||
return res
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user