Hot answers tagged

1

You can import 10 accounts by Private Key. Check your port, shouldn't the default be 8545? ETH balance display error: need to 'Settings - Network - Symbol' to fill in the ETH, although it is optional, but need to fill in the ETH


1

A direct translation would be bool success = transaction.to.call.value(transaction.value)(transaction.data); Since solc v0.7 address.call{value: amount}() indicates that amount ether will be sent with the call. Before that you had to use this syntax address.call.value(amount)(). transaction.data encodes the function and parameters to be executed. You can ...


1

Encountered the same issue while moving from the old solidity version to the new one. Just had to remove the public keyword after the constructor. constructor abc() public { // your code here. } to constructor abc() { // your code here. }


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