Skip to content

Commit

Permalink
fix: fix createTx params in unique chain (#95)
Browse files Browse the repository at this point in the history
  • Loading branch information
qwer951123 authored Nov 9, 2023
1 parent 1f1b56c commit 0b2ffda
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,5 @@
"jest": "^28.1.1",
"typescript": "^4.7.4"
},
"stableVersion": "0.1.5-17"
"stableVersion": "0.1.5-18"
}
8 changes: 8 additions & 0 deletions src/utils/check-message-version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ export function checkMessageVersionIsV3(api: AnyApi) {

return keys.includes("V3");
} catch (e) {
try {
const keys = (api?.createType("StagingXcmVersionedMultiLocation") as any)
.defKeys as string[];

return keys.includes("V3");
} catch (e) {
// ignore
}
// ignore error
}

Expand Down

0 comments on commit 0b2ffda

Please sign in to comment.