From 90999d60c8d21d9c4d720aa74b0e0d9386ed6c70 Mon Sep 17 00:00:00 2001 From: Thomas Dekeyser Date: Mon, 4 Mar 2024 16:30:25 +0100 Subject: [PATCH] fix issue in create channel script (naming) --- scripts/_create-channel.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/_create-channel.js b/scripts/_create-channel.js index 2c17aa5..27b232e 100644 --- a/scripts/_create-channel.js +++ b/scripts/_create-channel.js @@ -85,10 +85,10 @@ async function main() { if (connectedChannelsAfter!== undefined && connectedChannelsAfter.length > connectedChannelsBefore.length) { - const newChannelBytes = connectedChannels[connectedChannels.length - 1].channelId; + const newChannelBytes = connectedChannelsAfter[connectedChannelsAfter.length - 1].channelId; const newChannel = hre.ethers.decodeBytes32String(newChannelBytes); - const cpChannelBytes = connectedChannels[connectedChannels.length - 1].cpChannelId; + const cpChannelBytes = connectedChannelsAfter[connectedChannelsAfter.length - 1].cpChannelId; const cpChannel = hre.ethers.decodeBytes32String(cpChannelBytes); console.log(`Channel created: ${newChannel} with portID ${srcPortId} on network ${networkName}, Counterparty: ${cpChannel} on network ${chanConfig.dstChain}`);