Skip to content

Commit

Permalink
Pass through dispatch tx from CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
yorhodes committed May 4, 2024
1 parent ffb8f37 commit baedddc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion typescript/cli/src/send/transfer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ async function executeDelivery({
logBlue(`Message ID: ${message.id}`);

if (selfRelay) {
await core.relayMessage(message);
await core.relayMessage(message, transferTxReceipt);
logGreen('Message was self-relayed!');
return;
}
Expand Down
2 changes: 1 addition & 1 deletion typescript/cli/src/status/message.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export async function checkMessageStatus({

const receipt = await core.getDispatchTx(origin, messageId);
const messages = core.getDispatchedMessages(receipt);
await core.relayMessage(messages[0]);
await core.relayMessage(messages[0], receipt);
logGreen(`Message ${messageId} was self-relayed!`);
}
}

0 comments on commit baedddc

Please sign in to comment.