Hot answers tagged

3

Solidity's syntax has some similarities to JavaScript, and a large amount of tooling has been written in JavaScript. However, I would not say that knowledge of JavaScript is an absolute prerequisite. ethereum.org maintains a list of language specific resources that you may find useful: https://ethereum.org/developers/#language-specific-resources


2

I teach and develop courseware for B9lab. There is no absolute requirement for JavaScript knowledge and I would argue that similarities between Solidity and JavaScript are superficial. There is much to unlearn, in any case, because blockchain platforms are unlike any other form of software regardless of syntax. External to the blockchain there is always a ...


2

Ganache can be configured to mine new blocks on a specific time interval. With this setting enabled you are able to include multiple transactions in a single block. To enable this functionality in the GUI, access the settings by clicking the gear icon in the top right corner. Choose "Server" settings. From there you will be able to disable auto-mining and ...


2

You can set the nonce with {nonce: <nonce>} but the bigger question is WHY? The nonce should be managed by the client and there are valid reasons to track it yourself. Have a look over here at "Candidate 3" that I would recommend most of the time. Concurrency patterns for account nonce However, this is not a valid design. intends to put multiple ...


2

Have you unlocked account1 on Infura? Of course, that's not possible (and you wouldn't want it to be either). This mode of operation is available only when you're using your own private node, so that others will not be able to exploit your account. And even then, it is not a recommend mode of operation, since anyone hacking your node will be able to ...


2

Run it again. More generally, run it inside a try/catch block until success. For your specific error, it is possible that the node is not synchronized with your account's current nonce, so you may want to add this to your options object: nonce: await web3.eth.getTransactionCount(0xYourAccountAddress) Since you may also encounter other types of errors, I ...


1

I think I know what the problem with this is, just in the place of network_id: 3 put it as network_id:'3', and I think this should start working. AFAIK the problem is that truffle identifies networks based on network id and it is not able to parse your network_id in a proper way. Please upvote and accept if it helps. Thanks!!! Reference: https://www....


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