Skip to content

Commit

Permalink
remove polkadotXcm limitedReserveTransferAssets X1 transfer
Browse files Browse the repository at this point in the history
  • Loading branch information
nohaapav committed Oct 11, 2024
1 parent d1cf982 commit 706c067
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 20 deletions.
19 changes: 0 additions & 19 deletions packages/xcm-cfg/src/builders/extrinsics/polkadotXcm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,25 +43,6 @@ const limitedReserveTransferAssets = () => {
},
}),
}),
X1: (): ExtrinsicConfigBuilder => ({
build: ({ address, amount, destination }) =>
new ExtrinsicConfig({
module: pallet,
func,
getArgs: () => {
const version = XcmVersion.v1;
const account = getExtrinsicAccount(address);
const rcv = destination.chain as Parachain;
return [
toDest(version, rcv),
toBeneficiary(version, account),
toAssets(version, 0, 'Here', amount),
0,
'Unlimited',
];
},
}),
}),
X2: (): ExtrinsicConfigBuilder => ({
build: ({ address, amount, asset, destination, source }) =>
new ExtrinsicConfig({
Expand Down
2 changes: 1 addition & 1 deletion packages/xcm-cfg/src/configs/kusama/robonomics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const robonomicsConfig = new ChainConfig({
extrinsic: ExtrinsicBuilder()
.polkadotXcm()
.limitedReserveTransferAssets()
.X1(),
.here(),
}),
],
chain: robonomics,
Expand Down

0 comments on commit 706c067

Please sign in to comment.