Skip to content

Commit 3f56a0d

Browse files
committed
chore: update portal upgrade script
1 parent 4a8ac6e commit 3f56a0d

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

packages/solidity-contracts/deploy/hardhat/010.portal_upgrade.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
1616
upgrades: { erc1967 },
1717
} = hre;
1818

19-
const [deployer] = await ethers.getSigners();
19+
const [deployer, , ,secondaryUser] = await ethers.getSigners();
2020

2121
const isForking = hre.config.networks[hre.network.name]?.forking?.enabled;
2222
let address;
@@ -73,6 +73,17 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
7373
data: txData,
7474
});
7575

76+
txData = await portal.interface.encodeFunctionData('grantRole', [
77+
SET_RATE_LIMITER_ROLE,
78+
await secondaryUser.getAddress(),
79+
]);
80+
81+
await impersonatedSigner.sendTransaction({
82+
to: address,
83+
data: txData,
84+
});
85+
86+
7687
const implementation = await erc1967.getImplementationAddress(address);
7788

7889
console.log('Upgraded FuelMessagePortal to', implementation);

packages/solidity-contracts/integration-tests/transfer_eth.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ describe('Transferring ETH', async function () {
451451
});
452452

453453
it('Rate limit parameters are updated when the initial duration is over', async () => {
454-
const deployer = env.eth.deployer;
454+
const deployer = await env.eth.signers[0];
455455

456456
// fast forward time
457457
await env.eth.provider.send('evm_increaseTime', [

0 commit comments

Comments
 (0)