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: add ft_resolve_transfer callback #74

Merged
merged 1 commit into from
May 16, 2024
Merged

fix: add ft_resolve_transfer callback #74

merged 1 commit into from
May 16, 2024

Conversation

VladasZ
Copy link
Collaborator

@VladasZ VladasZ commented May 13, 2024

While migrating to near-sdk-5.1.0 I missed implementation of this callback.
Without it ft_transfer_call used in sweat-jar and in any other contracts will fail.

The implementation is copied from near-sdk-4.1.1 near_contract_standards::impl_fungible_token_core! macro:
https://github.com/near/near-sdk-rs/blob/e22f74ea9f6a0be8fe030a9225716eab811116ea/near-contract-standards/src/fungible_token/macros.rs#L45

on_tokens_burned_fn callback is skipped as it was done previously.

@VladasZ VladasZ marked this pull request as ready for review May 13, 2024 17:45
@VladasZ VladasZ requested a review from vasyafromrussia May 13, 2024 17:46
@VladasZ VladasZ merged commit 0e2b2c8 into dev May 16, 2024
4 checks passed
@VladasZ VladasZ deleted the resolve-transfer branch May 16, 2024 12:15
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