diff --git a/migrations/1_deploy_contracts.js b/migrations/1_deploy_contracts.js index 5c78e5d..52f741e 100644 --- a/migrations/1_deploy_contracts.js +++ b/migrations/1_deploy_contracts.js @@ -4,6 +4,7 @@ const IBCChannel = artifacts.require("IBCChannelHandshake"); const IBCClient = artifacts.require("IBCClient"); const MockClient = artifacts.require("MockClient"); const MockModule = artifacts.require("MockModule"); +const CKBClient = artifacts.require("CKBClient"); module.exports = async function (deployer, network) { console.log("Deploy contracts for network", network); @@ -15,12 +16,14 @@ module.exports = async function (deployer, network) { await deployer.deploy(IBCClient); await deployer.deploy(MockClient); await deployer.deploy(MockModule); + await deployer.deploy(CKBClient); const ibcClient = await IBCClient.deployed(); const ibcPacket = await IBCPacket.deployed(); const ibcConnection = await IBCConnection.deployed(); const ibcChannel = await IBCChannel.deployed(); const mockClient = await MockClient.deployed(); + const ckbClient = await CKBClient.deployed(); // 2. deploy IBCMockHandler let IBCHandler = undefined; @@ -46,7 +49,7 @@ module.exports = async function (deployer, network) { const axonClientType = "07-axon"; await ibcHandler.registerClient(axonClientType, mockClient.address); const ckbClientType = "07-ckb4ibc"; - await ibcHandler.registerClient(ckbClientType, mockClient.address); + await ibcHandler.registerClient(ckbClientType, ckbClient.address); // 4. register MockTransfer Module const MockTransfer = artifacts.require("MockTransfer");