Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Hot answers tagged

2

Maybe it will be easier for you to start with http://remix.ethereum.org and move to ganache after you gather some experience (or just stay in remix). The main problem here is that you will need openzeppelin-solidity@1.5.0 not openzeppelin-solidity@2.0.0 Then in Remix make sure to select v0.4.18 as your compiler


2

Managed to get an answer from the developer of the project. In case anyone else finds themselves here: Contract addresses are deterministic (a combination of deployment account/address and the nonce). They have a utility function here called getAddress which is able to determine what the contract address will be: https://github.com/marbleprotocol/humanity/...


1

Yes it is possible, previously I wrote an answer for getting truffle working for various CI services and this gist also supports the same idea https://gist.github.com/maikotrindade/2d544de08215085abfbba59ce3378a2c. What Continuous Integration services support running Truffle Solidity tests? As for Jenkins, I assume you can use a docker image or install ...


1

Great to hear that you are using Ethernaut to learn more about smart contract security. I would suggest that for the Fallback level you just use the console. I can then help with getting an environment setup. Some hints on the Fallback level. How to send ether when interacting with an ABI e.g. await contract.someFunction(parameter1, {value: toWei(0.1)}) ...


1

You need to import HelloEth where you import another contracts. You are creating an instance here, but Solidity doesn't know what that HelloEth means until you import the contract. Also, in the future, try use Mocha.js so you don't have to spend gas and it will be faster. You will use the same truffle and code in asynchronous way.


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