Skip to content

Commit d33ff65

Browse files
Hebao small fixes (#1752)
* [hebao] a small fix in ForwarderModule.sol * small fixes in migrations/9_modules.js
1 parent 5573ba8 commit d33ff65

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

packages/hebao_v1/contracts/modules/core/ForwarderModule.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ abstract contract ForwarderModule is BaseModule
221221

222222
// Check the wallet has enough meta tx gas
223223
if (metaTx.gasPrice > 0) {
224-
uint gasCost = gasLimit.mul(metaTx.gasPrice);
224+
uint gasCost = metaTx.gasLimit.mul(metaTx.gasPrice);
225225

226226
if (metaTx.gasToken == address(0)) {
227227
require(

packages/hebao_v1/migrations/9_modules.js

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,27 +35,32 @@ module.exports = function(deployer, network, accounts) {
3535

3636
const dest = [FinalCoreModule, FinalSecurityModule, FinalTransferModule];
3737
await deployer.link(SignedRequest, dest);
38-
await deployer.deploy(FinalCoreModule, ControllerImpl.address);
38+
await deployer.deploy(FinalCoreModule, ControllerImpl.address, {
39+
gas: 6700000
40+
});
3941
await deployer.deploy(
4042
FinalSecurityModule,
4143
ControllerImpl.address,
4244
FinalCoreModule.address,
4345
guardianPendingPeriod,
4446
inheritanceWaitingPeriod,
45-
whitelistDelayPeriod
47+
whitelistDelayPeriod,
48+
{ gas: 6700000 }
4649
);
4750
await deployer.deploy(
4851
FinalTransferModule,
4952
ControllerImpl.address,
5053
FinalCoreModule.address,
51-
quotaDelayPeriod
54+
quotaDelayPeriod,
55+
{ gas: 6700000 }
5256
);
5357

5458
await deployer.deploy(
5559
AddOfficialGuardianModule,
5660
ControllerImpl.address,
5761
OfficialGuardian.address,
58-
11
62+
11,
63+
{ gas: 6700000 }
5964
);
6065

6166
const moduleRegistry = await ModuleRegistryImpl.deployed();

0 commit comments

Comments
 (0)