Skip to content

Commit

Permalink
fix import
Browse files Browse the repository at this point in the history
  • Loading branch information
aelmanaa committed Apr 12, 2024
1 parent c22c7ff commit 4935a2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ccip/offchain/javascript/src/transfer-tokens.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const {
getProviderRpcUrl,
getRouterConfig,
getPrivateKey,
getMessageState,
getMessageStatus,
} = require("./config");
const { ethers, JsonRpcProvider } = require("ethers");
const routerAbi = require("../../abi/Router.json");
Expand Down Expand Up @@ -322,7 +322,7 @@ const transferTokens = async () => {
for (let event of events) {
if (event.args && event.args.messageId === messageId) {
const state = event.args.state;
const status = getMessageState(state);
const status = getMessageStatus(state);
console.log(
`\n✅Status of message ${messageId} is ${status} - Check the explorer https://ccip.chain.link/msg/${messageId}`
);
Expand Down

0 comments on commit 4935a2b

Please sign in to comment.