Skip to content

Commit

Permalink
Deploy ICS20TransferERC20 and bind to port transfer
Browse files Browse the repository at this point in the history
  • Loading branch information
blckngm committed Sep 20, 2023
1 parent ad46062 commit 567f006
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions migrations/1_deploy_contracts.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ module.exports = async function (deployer, network) {
packetAddress
);
const mockTransferAddress = await deployContract("MockTransfer", ibcAddress);
const transferAddress = await deployContract("ICS20TransferERC20", ibcAddress);
const mockClient = await deployContract("MockClient");
const ibcHandler = await IBCHandler.at(ibcAddress);

Expand All @@ -83,6 +84,9 @@ module.exports = async function (deployer, network) {
// Register Module (optional, just for the cooperation of test on Axon endpoint)
await ibcHandler.bindPort("port-0", mockTransferAddress);
console.log("Register Mock Transfer: port-0");

await ibcHandler.bindPort("transfer", transferAddress);
console.log("Register Transfer: transfer");
}
};

Expand Down

0 comments on commit 567f006

Please sign in to comment.