You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We use the simple contract SimpleNFT.cdc. At deployment time, the contract withdraws and deposits token index 1 from the dictionary to make sure that is working. Then in the GenerateDestroyScript in nft_templates.go, we load the collection from storage and try to withdraw with causes the missing NFT error. We had also gotten the error from borrowing a reference to the collection.
Acceptance Criteria
This test case must pass.
Context
This makes it impossible to withdraw an NFT from a collection, so it blocks testing of the topshot contracts on the testnet
The text was updated successfully, but these errors were encountered:
Problem
Objects are not being loaded correctly from a dictionary after it has been stored.
Steps to Reproduce
https://github.com/onflow/flow-nft/tree/josh/bugFix
go test -v
in thenfttests
directory.missing NFT
SimpleNFT.cdc
. At deployment time, the contract withdraws and deposits token index 1 from the dictionary to make sure that is working. Then in theGenerateDestroyScript
innft_templates.go
, we load the collection from storage and try to withdraw with causes themissing NFT
error. We had also gotten the error from borrowing a reference to the collection.Acceptance Criteria
This test case must pass.
Context
This makes it impossible to withdraw an NFT from a collection, so it blocks testing of the topshot contracts on the testnet
The text was updated successfully, but these errors were encountered: