diff --git a/yarn-project/ethereum/src/deploy_l1_contracts.ts b/yarn-project/ethereum/src/deploy_l1_contracts.ts index f5f58226302a..5e1c656e6453 100644 --- a/yarn-project/ethereum/src/deploy_l1_contracts.ts +++ b/yarn-project/ethereum/src/deploy_l1_contracts.ts @@ -276,7 +276,14 @@ export const deploySharedContracts = async ( feeAssetAddress = deployedFee.address; logger.verbose(`Deployed Fee Asset at ${feeAssetAddress}`); + const deployedStaking = await deployer.deploy(StakingAssetArtifact, ['Staking', 'STK', l1Client.account.address]); + stakingAssetAddress = deployedStaking.address; + logger.verbose(`Deployed Staking Asset at ${stakingAssetAddress}`); + + await deployer.waitForDeployments(); + // Mint a tiny bit of tokens to satisfy coin-issuer constraints + // This must happen AFTER the FeeAsset deployment is mined const { txHash } = await deployer.sendTransaction({ to: feeAssetAddress.toString(), data: encodeFunctionData({ @@ -287,12 +294,6 @@ export const deploySharedContracts = async ( }); await l1Client.waitForTransactionReceipt({ hash: txHash }); logger.verbose(`Minted tiny bit of tokens to satisfy coin-issuer constraints in ${txHash}`); - - const deployedStaking = await deployer.deploy(StakingAssetArtifact, ['Staking', 'STK', l1Client.account.address]); - stakingAssetAddress = deployedStaking.address; - logger.verbose(`Deployed Staking Asset at ${stakingAssetAddress}`); - - await deployer.waitForDeployments(); } const gseAddress = (