Skip to content

Commit

Permalink
Move account id inside of interior (#3396)
Browse files Browse the repository at this point in the history
Fixed the wrong format of beneficiary (kusama -> picasso)
  • Loading branch information
bengalmozzi authored Apr 13, 2023
1 parent eaf44d9 commit 1bf3505
Showing 1 changed file with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -273,12 +273,15 @@ export const createTransfersSlice: StoreSlice<TransfersSlice> = (set, get) => ({
const feeAssetItem = api.createType("u32", 0); // First item in the list.
const beneficiary = api.createType("XcmVersionedMultiLocation", {
V2: api.createType("XcmV2MultiLocation", {
X1: api.createType("XcmV2Junction", {
AccountId32: {
network: api.createType("XcmV2NetworkId", "Any"),
id: api.createType("AccountId32", recipient),
parents: 0,
interior: {
X1: {
AccountId32: {
id: api.createType("AccountId32", recipient),
network: "Any",
},
},
}),
},
}),
});

Expand Down

0 comments on commit 1bf3505

Please sign in to comment.