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

NFT contract derived from NonFungibleToken macro will panic if receiver account lenght is shorter than sender account. #155

Open
VladasZ opened this issue Sep 11, 2024 · 0 comments

Comments

@VladasZ
Copy link

VladasZ commented Sep 11, 2024

It looks like in case when receiver account is shorter than sender account apply_storage_accounting_hook is trying to refund excess storage to it and fails.

Steps to reproduce:

Edit NFT macro tests like this: VladasZ@8054ed3

It will panic:

called `Result::unwrap()` on an `Err` value: HostError(GuestPanic { panic_msg: "Storage accounting error: Account bob cannot unlock more tokens than it has deposited" })
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

No branches or pull requests

1 participant