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

Commit

Permalink
chore: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
leovct committed Nov 23, 2023
1 parent fbec4d0 commit 1e5994a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion migrations/5_deploy_child_contracts.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ module.exports = async function(deployer, network, accounts) {
const childMaticWethProxified = await deployer.deploy(ChildERC20Proxified)
const childMaticWethProxy = await deployer.deploy(ChildTokenProxy, childMaticWethProxified.address)
const childMaticWeth = await ChildERC20Proxified.at(childMaticWethProxy.address)

await childMaticWeth.initialize(contractAddresses.root.tokens.MaticWeth, 'Eth on Matic', 'ETH', 18)
await childMaticWeth.changeChildChain(childChain.address)
await childChain.mapToken(contractAddresses.root.tokens.MaticWeth, childMaticWeth.address, false)
Expand All @@ -37,6 +38,7 @@ module.exports = async function(deployer, network, accounts) {
const childTestTokenProxified = await deployer.deploy(ChildERC20Proxified)
const childTestTokenProxy = await deployer.deploy(ChildTokenProxy, childTestTokenProxified.address)
const childTestToken = await ChildERC20Proxified.at(childTestTokenProxy.address)

await childTestToken.initialize(contractAddresses.root.tokens.TestToken, 'Test Token', 'TST', 18)
await childTestToken.changeChildChain(childChain.address)
await childChain.mapToken(contractAddresses.root.tokens.TestToken, childTestToken.address, false)
Expand All @@ -45,7 +47,8 @@ module.exports = async function(deployer, network, accounts) {
const childTestERC721Proxified = await deployer.deploy(ChildERC721Proxified)
const childTestERC721Proxy = await deployer.deploy(ChildTokenProxy, childTestERC721Proxified.address)
const childTestERC721 = await ChildERC721Proxified.at(childTestERC721Proxy.address)
await childTestERC721.initialize(contractAddresses.root.tokens.TestToken, 'Test ERC721', 'TST721', 0)

await childTestERC721.initialize(contractAddresses.root.tokens.RootERC721, 'Test ERC721', 'TST721', 0)
await childTestERC721.changeChildChain(childChain.address)
await childChain.mapToken(contractAddresses.root.tokens.RootERC721, childTestERC721.address, true) // ERC721

Expand Down

0 comments on commit 1e5994a

Please sign in to comment.