Skip to main content
9 events
when toggle format what by license comment
Mar 1, 2020 at 21:20 vote accept surhud004
Feb 28, 2020 at 5:27 comment added surhud004 I cannot since I am a new contributor. You need more than 50 reputation to accept that. Apologies.
Feb 26, 2020 at 22:26 comment added surhud004 Oh no!! My mistake. I am working on solidity for the first time. Yes, it works!! Thanks a lot for your help. Appreciate it.
Feb 26, 2020 at 22:05 comment added goodvibration @surhud004: The bytecode in that link is different from the bytecode in your questio!!! A simple comparison of the two code snippets (as I just did) would have revealed that to you. You should be more meticulous when writing your code!
Feb 26, 2020 at 21:41 comment added surhud004 Here's the complete code snippet with the ERROR snippet - gist.github.com/surhud004/59f876f6f991941e2145e9cbca2f6134
Feb 26, 2020 at 21:34 comment added surhud004 Yes, I did the exact changes. Here's the code snippet - .then(function(newContractInstance){ console.log("contract address -"); console.log(newContractInstance.options.address); // instance with the new contract address newContractInstance.methods.myFunction().call() .then(function(result){ console.log(result); }) .catch(console.log); });
Feb 26, 2020 at 21:13 comment added goodvibration @surhud004: Before posting this answer, I have actually tried your code with the changes that I later suggested here, and it worked fine. Please make sure that you are applying the exact same changes.
Feb 26, 2020 at 20:44 comment added surhud004 Thanks a lot for the answer! I did those two changes mentioned above. Now I'm getting a new ERROR - Error: Returned error: VM Exception while processing transaction: revert at Object.ErrorResponse.... I haven't changed the smart contract. There are no modifiers or require() in the contract.
Feb 26, 2020 at 8:21 history answered goodvibration CC BY-SA 4.0