Skip to content
This repository has been archived by the owner on Jul 8, 2024. It is now read-only.

Buy button throws an error #106

Closed
nosovk opened this issue Jun 25, 2021 · 2 comments
Closed

Buy button throws an error #106

nosovk opened this issue Jun 25, 2021 · 2 comments
Labels
bug Something isn't working feedback

Comments

@nosovk
Copy link

nosovk commented Jun 25, 2021

Describe the bug
When I try to buy an item via button "Buy" it fails with some error in console.

To Reproduce
Steps to reproduce the behavior:
Login to shop on testnet with Blockto wallet.
Init account.
Mint.
Buy an item at Item Marketplace screen.

Expected behavior
Item should be acquired by me.

Screenshots/Logs/Output
image

Environment (Optional - Version, OS, Browser, etc.)
Chrome, Version 93.0.4542.2 (Official Build) dev (64-bit)
Manjaro Linux

Error in console:

tx.js:5 TX[64ec98ec8f325688c9619a733e44e67bb6523aa057f396d19e52a42387efd942]: https://flow-view-source.com/testnet/tx/64ec98ec8f325688c9619a733e44e67bb6523aa057f396d19e52a42387efd942 [Error Code: 1101] cadence runtime error Execution failed:
error: unexpectedly found nil while forcing an Optional value
  --> 64ec98ec8f325688c9619a733e44e67bb6523aa057f396d19e52a42387efd942:17:74
   |
17 |           let price = self.marketCollection.borrowSaleItem(itemID: itemID)!.price
   |                                                                           ^
@nosovk nosovk added bug Something isn't working feedback labels Jun 25, 2021
@10thfloor
Copy link
Contributor

@nosovk Are you running your own version, or is this on the deployed version?

@nosovk
Copy link
Author

nosovk commented Jul 3, 2021

it was on deployed version

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working feedback
Projects
None yet
Development

No branches or pull requests

2 participants