rwaltzsoftware-org / coffee-supplychain-ethereum

Implementation of coffee supplychain using ethereum smart contract addressing the issue of storing critical data necessary at different stages of supplychain and making it verifiable by all stakeholders in supplychain.
127 stars 80 forks source link

ALERT: Transaction Error. Exception thrown in contract code. (shown in metamask when creating batch) #5

Open identa opened 5 years ago

identa commented 5 years ago

I have a problem when I created a new batch. If I ignore it and submit the transaction then it will not be accepted in Etherscan. And a dialogue show up with some errors: Error Transaction ran out of gas. Please provide more gas: { "blockHash": "0xf789cf45a2cacd7f7c33c262b27842a80a5abd874480ba11b321d4ef8120aeb2", "blockNumber": 3001314, "contractAddress": null, "cumulativeGasUsed": 263836, "from": "0x7289b02384a10b52c4fa4cb111021cbfbbefe979", "gasUsed": 26458, "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "status": false, "to": "0x2f924ffa1d533f32c57088061c76e7378f6f2667", "transactionHash": "0xb89cdaa6624b4ea913c36b0eaa7aea26854d1f6e7545dd4c44ed9dddb0850a2d", "transactionIndex": 2, "events": {} }

Please fix it for me, I really appreciate it!

rwaltzsoftware-org commented 5 years ago

@tatrunganh1996 , Assuming that you have used Metamask plugin

Please make sure if you have logged in metamask with the same address, which was used for deploying the contract.

identa commented 5 years ago

Yeah I do have used Metamask plugin. And what does "the same address, which was used for deploying the contract" mean? Is it the globAdminAddress variable in app.js? I have changed it to one of my Megamask account to login to admin.php page. Is this right? Please give me more details of this process.

AbhishekAttuluri commented 5 years ago

how did you solve this issue? I am facing the same problem