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

Fix evm origin #2513

Merged
merged 2 commits into from
Apr 6, 2023
Merged

Fix evm origin #2513

merged 2 commits into from
Apr 6, 2023

Conversation

zjb0807
Copy link
Member

@zjb0807 zjb0807 commented Apr 6, 2023

let clear = if let Ok(account) = account {
EVMBridge::push_origin(account);
true
} else {

origin: Self::get_evm_origin()?,

In the router example, the relayer calls the router contract and executes xtokens.transfer, the relayer is pushed in origin, and needs to pay the rent fee here.

In this case, the caller should always pay the rent. So it is divided into ExtrinsicOrigin and XcmOrigin

@zjb0807 zjb0807 requested review from xlc, ermalkaleci and shaunxw April 6, 2023 02:08
@zjb0807 zjb0807 merged commit 3d3b4c9 into master Apr 6, 2023
@zjb0807 zjb0807 deleted the fix-xcm-origin branch April 6, 2023 03:01
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