diff --git a/ethereum/scripts/deploy_test_token.js b/ethereum/scripts/deploy_test_token.js index e9e09a4d6..5a6d4d04e 100644 --- a/ethereum/scripts/deploy_test_token.js +++ b/ethereum/scripts/deploy_test_token.js @@ -61,10 +61,6 @@ module.exports = async function (callback) { from: accounts[0], gas: 1000000, }); - await token.methods.mint(accounts[2], "1000000000000000000000").send({ - from: accounts[0], - gas: 1000000, - }); const nftAddress = ( await ERC721.new( @@ -93,6 +89,16 @@ module.exports = async function (callback) { console.log("WETH token deployed at: " + wethAddress); + await token.methods.mint(accounts[2], "1000000000000000000000").send({ + from: accounts[0], + gas: 1000000, + }); + + // devnet WETH token address should be deterministic + if (wethAddress !== "0xDDb64fE46a91D46ee29420539FC25FD07c5FEa3E") { + throw new Error("unexpected WETH token address") + } + callback(); } catch (e) { callback(e);