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

Commit

Permalink
fix: initialize ERC20 tokens childChain address
Browse files Browse the repository at this point in the history
  • Loading branch information
leovct committed Nov 16, 2023
1 parent 27b9374 commit 206c0d5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions migrations/5_deploy_child_contracts.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ module.exports = async function(deployer, network, accounts) {
18,
false // _isERC721
)
await MaticWeth.changeChildChain(ChildChain.address)

let TestToken = await childChain.addToken(
accounts[0],
Expand All @@ -38,6 +39,7 @@ module.exports = async function(deployer, network, accounts) {
18,
false // _isERC721
)
await TestToken.changeChildChain(ChildChain.address)

let RootERC721 = await childChain.addToken(
accounts[0],
Expand All @@ -47,6 +49,7 @@ module.exports = async function(deployer, network, accounts) {
0,
true // _isERC721
)
await RootERC721.changeChildChain(ChildChain.address)

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

0 comments on commit 206c0d5

Please sign in to comment.