Hot answers tagged

2

There is no dist folder (containing the web3.min.js file) in the latest versions (1.x) You can select tag 0.20.7 on github before downloading the zip - it contains a ready to use web3.min.js


1

We solved this by having a one time init function. For full source, see ThingFactory.sol and Thing.sol. Basically, what you do is have this one time init function on your target contract (in the example, it would be Thing.) Then your factory contract calls the init function directly after creating the clone. The ...


1

Checkout the library clone-factory. Basically you create one master contract that has all the logic of the contracts you want to deploy, and when you deploy each clone contract, they're actually just proxies that delegatecall the master contract. It adds a little bit extra to each call, but saves immensely on contract code gas costs.


1

I do not think it means what you think it means. The problem is that you're creating a new Foo in run test, then passing it into one(), then passing it into two(), then changing it in two() returning it to one(), where you assign it into foobar, then proceed to return not even foobar's, but the original foo's stayFalse (not that it would have helped any). ...


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