Skip to content

Commit

Permalink
fix issue in create channel script (naming)
Browse files Browse the repository at this point in the history
  • Loading branch information
tmsdkeys committed Mar 4, 2024
1 parent 661c876 commit 90999d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/_create-channel.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
Expand Down

0 comments on commit 90999d6

Please sign in to comment.