Skip to content

Commit

Permalink
IOS-7967 Update script for case where transfer is not present (#862)
Browse files Browse the repository at this point in the history
  • Loading branch information
amuraveinik authored Oct 11, 2024
1 parent 3a9de7f commit 0216b3d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion PolkaParachainMetadataParser/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ async function main() {
const callType = lookup.getSiType(callTypeId);

// Find the 'transfer' call
const transferCall = callType.def.asVariant.variants.find(call => call.name.toString() === 'transfer');
let transferCall = callType.def.asVariant.variants.find(call => call.name.toString() === 'transfer');
if (!transferCall) {
transferCall = callType.def.asVariant.variants.find(call => call.name.toString() === 'transfer_allow_death');
}

if (transferCall) {
const callIndex = callType.def.asVariant.variants.indexOf(transferCall);
Expand Down

0 comments on commit 0216b3d

Please sign in to comment.