Hot answers tagged

1

IIRC, solc 0.5.17 is pre-Byzantium and you need to transition to 0.5.2? (not 100% sure which one). Perhaps a kind soul will chime in with the exact version cutoff or else check the release notes for the first release with Byzantium support. You can instruct truffle to use a specific solc version truffle-config.json. You may have to refactor the contract ...


1

From the details that you've posted, I believe that the address parameter in your event is indexed. Therefore, it is not going to be provided in the data string, but in the topics array at the 2nd entry (i.e., topics[1]). If you want the actual address, then you can do: const address = "0x" + topics[1].slice(26); // get rid of 24 leading zeros Since the ...


1

You can simply start Ganache with -b 15. See here for more details. Update: The above solution is for when you start Ganache as a separate process. In order to simulate a 15-second elpase in your tests, you can simply use this: web3.currentProvider.send({method: "evm_increaseTime", params: [15]});


1

As per the steps in blk-io/epirus/README Note that if setting NODE_ENDPOINT to a local Ethereum instance, you may need to use the IP address associated with the Docker bridged interface, often denoted by docker0. docker0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500 inet 172.17.0.1 netmask 255.255.0.0 broadcast 172.17.255.255 Instead of ...


1

Ganache provides the following Custom Methods, which a standard Ethereum node doesn't: evm_snapshot evm_revert evm_increaseTime evm_mine If you avoid using those in your operational system, then you should be fine. In addition to the above, Ganache allows you to maintain any number of accounts unlocked, so that you don't need to sign each transaction ...


1

Since you are using truffle the correct syntax is tokenInstance.getTokens({ from: accounts[1] }); Adding .call() will make the call but any change will not be recorded in the blockchain.


Only top voted, non community-wiki answers of a minimum length are eligible