New answers tagged

0

Here's a partial list of things to try after getting that error when deploying a contract: Increase the gas Make sure the constructor arguments are OK Reset Metamask Recompile the smart contract Remove any require statements from the constructor


1

When data is empty (and there is no receive ether function) the fallback function will be called. See: https://solidity.readthedocs.io/en/v0.6.8/contracts.html#fallback-function Prior to Solidity 0.4.0 this was used to send ETH to a contract.


0

This error sometimes appears when Metamask's nonce cache becomes invalid after ganache has been restarted. In that case the solution is to reset Metamask, Settings - Advanced - Reset Account.


0

The code is OK, but infura must have overspent on designing the frontend to their site because symbols for the CLI have been replaced with prettier ones! ” should be " ‘ should be ' — should be --


1

Ok, I did a bit more digging and I've found my answers. eth_pendingTransactions can not be filtered. eth_newpendingtransactionfilter doesn't filter anything, it instead subscribes the client to receive events when a new pending transaction enters the transaction pool. However there is a JSON_RPC method in the OpenEthereum implementation of an Ethereum node ...


1

They are encoded using solidity abi The first 32 bytes is the offset where string is present within the response: 0000000000000000000000000000000000000000000000000000000000000020. So the string starts at position 20h = 32. At specified offset the first 32 bytes indicates the length of the string: ...


0

You might write and deploy a smart contract that has a single method that will check the balance of multiple accounts and return you multiple balances concatenated. Then call this method and decode result. Here the solution for a similar problem: https://github.com/pooltogether/etherplex A problem that etherplex solves is similar but not exactly the same: ...


0

I used the require function to import the JSON file. import Web3 from 'web3'; const web3 = new Web3(window.web3.currentProvider); const { abi } = require('./smart_contract_after_compilation_step.json'); var smart_contract_interface = new web3.eth.Contract(abi, '0x5E54780072f1998FB85c3203D9697ef9E3F82DF0')


Top 50 recent answers are included