Replies: 1 comment
-
now when I'm trying to deploy with the test net. I get this error. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am playing around with smart contracts and decided to build a simple contract for an eCommerce store. The contract allows the owner to add items to the contract with price in USD, it allows the owner to remove a specific item and view current items. Furthermore, It also allows buyers to buy the items from the contract using
buy()
function. The issue here is that when I call thebuy()
function the transaction reverts every time on Remix's EVM, I don't really know what's going on here. I would love your input.Here's my code.
PriceConverter.sol
Here's the code for
Buying.sol
my main deployment contract if you will.Here's the revert when I try to do the transaction on Remix EVM.

However, it worked just once when I tried it on the test net.
Check it out: https://sepolia.etherscan.io/tx/0xbeaa569b48baedcce4cb3ddc8e1f42bca98131b1e02fcbd73c127b313b29aac4
Beta Was this translation helpful? Give feedback.
All reactions