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

Expand native support with optional contract call #265

Closed
2 tasks
MakMuftic opened this issue Aug 21, 2024 · 0 comments
Closed
2 tasks

Expand native support with optional contract call #265

MakMuftic opened this issue Aug 21, 2024 · 0 comments

Comments

@MakMuftic
Copy link
Contributor

We want to support the functionality of transferring native tokens in conjunction with a contract call.
An example use case would be: I want to buy NFT on the destination chain with the native token on the source chain (think L2s ETH), so I only execute one transaction that encodes the contract call (in this case, the mint method on the NFT contract) and also encodes the native transfer.

Implementation details

  • Alter the current Native Handler and Native Adapter contracts so they allow sending either just native asset deposit or native asset deposit + contract call

Testing details

  • Unit tests

Acceptance Criteria

  • Functional Native Handler and Adapter that allow for native token deposit + contract call
  • Passing unit tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants