New answers tagged

0

If you use ganache as a development Blockchain, you don't need MetaMask. This makes life much more easier, because you can get 10 addresses from ganache that you can use in your development and test environment. There are no checks, so ganache is nothing for production. Don't even think about it. But for development is No.1. So just configure truffle-config....


0

drizzle is a redux store that exports objects like drizzle and drizzleState to any component that uses DrizzleContex or that get's the objects via props. The trick of drizzle is that it organizes the communication with the blockchain and syncs it to its redux store. So you only need to communicate with the store throug cacheCall, cacheSend and so on. So ...


0

Hope this helps someone. The error was in the ABI or in the Bytecode. I replaced it and it worked.


0

Should the return statement not look like: returns(address) instead of returns(address newContract) But I wonder why you sometimes get a valid address back. Maybe when returning the Match object, sometimes its still in the heap with valid values, and sometimes it's already been deleted


0

Your function most probably does return value, you just cannot capture it. It is not easy to capture value returned by a functions, when the function is called on-chain from externally owned address. Try calling the function from other smart contract. Another way is to log result value in even along with returning it, like this: <!-- language: lang-...


0

In your crCode variable, after Contract Creation Code, you need to append Constructor Arguments. Both pieces of byte-code are available to you at the URL which you have linked in your question. Alternatively, since the Contract Source Code is also available at that link, you can compile it and then deploy it in the "standard way" (using web3.js deploy ...


0

I cannot assign more gas above gas limit of ganache... is it possible to increase this limit.... ? Yes, start Ganache with --gasLimit=someHigherValue. That being said, note that 6721975 is already by itself a pretty high value for a single transaction, so your deployment most likely fails for a different reason ("out of gas" is unfortunately quite a ...


3

TL;DR - Ganache and Puppeth are both tools to spin up your own blockchain. Ganache is meant to be used as a testbed where transactions can be created and contracts can be deployed freely and instantaneously. Puppeth is similar in that it has the ability to do this as well. Puppeth has the advantage of being more configurable and acting more similar to a live ...


0

But the functions which can change the status of state variables are not running. In order to execute a state-changing function you should use send instead of call. Is it necessary to send every transaction with signature (even on local ganache)? You can skip that part if you unlock your account on the node that you're communicating with. In Ganache, ...


1

From a recent issue on Sep 16th, 2019: ganache-core does not currently support a mempool, although this WIP refactor by @davidmurdoch does support a mempool to some degree


Top 50 recent answers are included