Skip to content
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

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

x3c41a
Copy link
Contributor

@x3c41a x3c41a commented Nov 21, 2024

This PR contains XCM programs which we are going to translate into ecosystem-tests and add those programs to v5 docs

},
})],
remote_xcm: [
Enum('PayFees', {
Copy link
Contributor

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

Comment on lines +236 to +242
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 },
},
);
Copy link
Contributor

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?

Copy link
Contributor Author

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 😸

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants