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

Ignore AgentTransferFromNative bridge command #1359

Merged

Conversation

alistair-singh
Copy link
Contributor

@alistair-singh alistair-singh commented Dec 30, 2024

Because we now lock Ether in the agent, we should never allow transferring native Ether unless it is part of an unlock bridge command.

Resolves: https://linear.app/snowfork/issue/SNO-1222

@yrong
Copy link
Contributor

yrong commented Jan 1, 2025

It may not be related to this PR but reminds me in V2, for transact, we allow the creation of a user/custom agent and dispatch transact with some Ether attached from that agent.

https://github.com/yrong/polkadot-sdk/blob/a3c5d872019313fdee8f188ff5fba854b4c20e8a/cumulus/parachains/integration-tests/emulated/tests/bridges/bridge-hub-westend/src/tests/snowbridge_v2_outbound.rs#L284

So we may still need to allow the user to claim Ether from the agent.

Copy link
Contributor

@yrong yrong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@alistair-singh alistair-singh merged commit c778b96 into alistair/support-eth Jan 7, 2025
2 checks passed
@alistair-singh alistair-singh deleted the alistair/block-agent-transfer-native-eth branch January 7, 2025 22:30
alistair-singh added a commit that referenced this pull request Jan 10, 2025
* do not dispatch transfer from native command

* test to make sure the behavior is off

* fmt

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

Successfully merging this pull request may close these issues.

2 participants