Skip to content

Commit

Permalink
wait for tx to be mined
Browse files Browse the repository at this point in the history
  • Loading branch information
josojo committed Feb 7, 2024
1 parent f9b7ed0 commit b989ae8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/scripts/prepareSequencerAfterFork.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const ChildConfig = {
};

async function main() {
const childConfig = ChildConfig.secondChild;
const childConfig = ChildConfig.firstChild;
/*
* Check deploy parameters
* Check that every necessary parameter is fullfilled
Expand Down Expand Up @@ -63,11 +63,13 @@ async function main() {
)).connect(deployer);

const tx1 = await forkonomicTokenChild.approve(zkevmChildAddress, ethers.constants.MaxUint256);
await tx1.wait();
console.log('Approved zkevm to spend forkonomic tokens');
console.log('by the following tx: ', tx1.hash);

const splitAmount = await forkonomicToken.balanceOf(deployer.address);
const tx2 = await forkonomicTokenChild.splitTokensIntoChildTokens(splitAmount, { gasLimit: 1000000 });
await tx2.wait();
console.log('Splitting tokens into their child tokens');
console.log('by the following tx: ', tx2.hash);
}
Expand Down

0 comments on commit b989ae8

Please sign in to comment.