New answers tagged

1

When transferring ether from an externally-owned account to a smart-contract account, the fallback function of the smart contract is executed (if it doesn't implement one, then the transaction reverts). Therefore, the cost of such transaction is 21000 plus the cost of the fallback function itself. If this function doesn't do anything except for (implicitly)...


1

Transferring ETH to a smart contract wallet will cost slightly more gas than transferring to an EOA. For example, transferring ETH to an Authereum wallet costs ~21,084 gas. This is because the transaction will trigger the fallback function on the contract, and generally is additional processing that must be done when this happens. For example, this line on ...


0

So if I understand correctly you want to detect this kind of errors in advance, without actually sending the transaction to the real blockchain. Whether the transaction succeeds or not may possibly depend on the contract state. Therefore it's not enough simply to take the same contract offline and test that even if that might get you quite far. So what you ...


Top 50 recent answers are included