Skip to content

Commit

Permalink
update paysWithFeeOrigin example
Browse files Browse the repository at this point in the history
  • Loading branch information
marshacb committed Dec 26, 2023
1 parent 6326c3c commit 7acad50
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/systemToParaPaysWithFeeOrigin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ const main = async () => {
isLimited: false,
xcmVersion: 3,
paysWithFeeOrigin: '1984',
sendersAddr: 'FBeL7DanUDs5SZrxZY1CizMaPgG9vZgJgvr52C2dg81SsF1',
},
);

Expand All @@ -41,7 +42,7 @@ const main = async () => {
throw Error(e as string);
}

const decoded = assetApi.decodeExtrinsic(callInfo.tx, 'call');
const decoded = assetApi.decodeExtrinsic(callInfo.tx, 'payload');
console.log(`\n${PURPLE}The following decoded tx:\n${GREEN} ${JSON.stringify(JSON.parse(decoded), null, 4)}${RESET}`);
};

Expand Down

0 comments on commit 7acad50

Please sign in to comment.