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

Implement ft_transfer_call on withdraw #43

Merged
merged 13 commits into from
May 15, 2024
Merged

Implement ft_transfer_call on withdraw #43

merged 13 commits into from
May 15, 2024

Conversation

karim-en
Copy link
Collaborator

@karim-en karim-en commented May 4, 2024

In the current implementation, it is not possible to transfer the Near tokens to the Aurora network directly because the contract doesn't implement the ft_transfer_call on withdrawal.
This PR adds the possibility of transferring the Near tokens from the Ethereum network to the Aurora network.
How it works:

  • The contract accepts a new format of recipient <target_Account_id>:<msg>. The msg could be any message, but for Aurora network, it will be 20 bytes hex address.
  • If the msg is attached, the contract wraps the native near tokens and transfers them to the target account ID.
  • If the msg is None, then the contract transfers the Near tokens directly to the target as it has been done before.

@karim-en karim-en marked this pull request as ready for review May 4, 2024 14:25
@kiseln
Copy link
Contributor

kiseln commented May 6, 2024

Can we add a test for transfer to aurora? @karim-en

@karim-en karim-en requested a review from olga24912 May 7, 2024 23:35
@karim-en
Copy link
Collaborator Author

karim-en commented May 7, 2024

Can we add a test for transfer to aurora? @karim-en

For that, we need to implement integration tests for this contract, which is out of the scope of this PR.

@karim-en karim-en merged commit 2f4d3d8 into main May 15, 2024
3 checks passed
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.

3 participants