-
Notifications
You must be signed in to change notification settings - Fork 708
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Draft] Chopsticks tests with papi and local nodes #6572
base: master
Are you sure you want to change the base?
Conversation
}, | ||
})], | ||
remote_xcm: [ | ||
Enum('PayFees', { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you pass in "remote_fee" it already adds this PayFees in the remote message
const weight = await AHApi.apis.XcmPaymentApi.query_xcm_weight(msg); | ||
|
||
const ahToWnd = AHApi.tx.PolkadotXcm.execute({ | ||
message: msg, | ||
max_weight: { ref_time: weight.value.ref_time, proof_size: weight.value.proof_size }, | ||
}, | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome use of the runtime API, I didn't think of it but it's much easier now for clients to call "execute". Did you need to add some extra weight as margin or did this work out of the box?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This worked out of the box. I thought that was the intention 😸
This PR contains XCM programs which we are going to translate into ecosystem-tests and add those programs to v5 docs