Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

Commit

Permalink
chore: simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
leovct committed Nov 23, 2023
1 parent 5bfac7e commit c857496
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions migrations/5_deploy_child_contracts.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ module.exports = async function(deployer, network, accounts) {
)
const maticWethAddress = maticWethTx.logs.find(log => log.event === 'NewToken').args.token
const maticWethContract = await ChildERC20.at(maticWethAddress)
await maticWethContract.changeChildChain(contractAddresses.child.ChildChain, {from: accounts[0]})
await maticWethContract.changeChildChain(childChain.address, {from: accounts[0]})

const testERC20Tx = await childChain.addToken(
accounts[0],
Expand All @@ -43,7 +43,7 @@ module.exports = async function(deployer, network, accounts) {
)
const testERC20Address = testERC20Tx.logs.find(log => log.event === 'NewToken').args.token
const testERC20Contract = await ChildERC20.at(testERC20Address)
await testERC20Contract.changeChildChain(contractAddresses.child.ChildChain, {from: accounts[0]})
await testERC20Contract.changeChildChain(childChain.address, {from: accounts[0]})

const testERC721Tx = await childChain.addToken(
accounts[0],
Expand All @@ -55,7 +55,7 @@ module.exports = async function(deployer, network, accounts) {
)
const testERC721Address = testERC721Tx.logs.find(log => log.event === 'NewToken').args.token
const testERC721Contract = await ChildERC721.at(maticWethAddress)
await testERC721Contract.changeChildChain(contractAddresses.child.ChildChain, {from: accounts[0]})
await testERC721Contract.changeChildChain(childChain.address, {from: accounts[0]})

const maticToken = await MRC20.at('0x0000000000000000000000000000000000001010')
const maticOwner = await maticToken.owner()
Expand Down

0 comments on commit c857496

Please sign in to comment.