Skip to content

Instantly share code, notes, and snippets.

@muddlebee
Created April 19, 2025 08:51
Show Gist options
  • Select an option

  • Save muddlebee/5a4b653ed2c94bf4849e706557d3b6e9 to your computer and use it in GitHub Desktop.

Select an option

Save muddlebee/5a4b653ed2c94bf4849e706557d3b6e9 to your computer and use it in GitHub Desktop.
XcmVersionedXcm.V4([
XcmV4Instruction.WithdrawAsset([{
id: dot_loc,
fun: XcmV3MultiassetFungibility.Fungible(withdrawAmount)
}]),
XcmV4Instruction.BuyExecution({
fees: {
id: dot_loc,
fun: XcmV3MultiassetFungibility.Fungible(final_fees)
},
weight_limit: XcmV3WeightLimit.Unlimited()
}),
XcmV4Instruction.Transact({
origin_kind: XcmV2OriginKind.SovereignAccount(),
require_weight_at_most: {
ref_time: remarkWeight.weight.ref_time,
proof_size: remarkWeight.weight.proof_size
},
call: encodedRemarkHex
});
])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment