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

Issue with deployed Remix contract #5

Open
Prker opened this issue Sep 10, 2021 · 3 comments
Open

Issue with deployed Remix contract #5

Prker opened this issue Sep 10, 2021 · 3 comments

Comments

@Prker
Copy link

Prker commented Sep 10, 2021

2 days ago I could take the this smart contract and deploy it on Remix and was able to mint from both the owners address and other wallets. Last night I started to get an error that would not let any wallets, other then the owners, use the mint function. It seems that everything fails unless line 46 (in SmartContract.sol) is disabled. Anyone else having this issue? It seems like msg.value is passing as empty (or 0), therefor the transaction fails on line 46.

I was able to deploy the contract to Rinkeby then verify the contract on etherscan and use the mint function that because Payable the payableAmount field and if filled out correctly the mint from the non-owner wallet works.

New to Solidity so a bit stuck, any thoughts ?

@rkingbon
Copy link

Same here, started to get an error that would not let any wallets, other then the owners, use the mint function.

@abhay-rana
Copy link

yeah same error only the owner can run the mint function , when another wallet try to mint function it gives the gas estimation error and transaction reverted back.
plz solve this issue if anyone know how to solve this

@MindpowerLLC
Copy link

You should post your contract so people can see if there is an issue.

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

4 participants