2
votes
msg.val payable compiler implimentation optcode
How does the ethereum evm handle msg.val transfers? There is no opt
code I can see which changes the balance of an account.
You are right, this is not an opcode at all. It's a property of a message ...
2
votes
Accepted
If not in the EVM, where do internal functions execute?
internal functions are called through a JUMP / JUMPI instruction, simply jumping to another point of the current code. This makes sense because internal functions do not change context (i.e., they ...
1
vote
Accepted
mapped struct storage layout (slots) and collsions
I have found a lot of documentation about the layout of structs,
mappings but nothing to confirm my interpretation of how they work
together in mapped structs.
Structs work exactly the same with or ...
1
vote
Deploy contract with Bytecode from smart contract
function deploy(bytes memory _data) public returns (address pointer) {
bytes memory code = abi.encodePacked(
hex"63",
uint32(_data.length),
hex"...
1
vote
Accepted
Why dedicated ADDMOD opcode?
The ADDMOD and MULMOD opcodes have a specificity talked about in the yellow paper.
All intermediate calculations of this operation are not subject to the
2^256 modulo.
This means that you can do ...
1
vote
How does a single getter call get chosen by a node if there's no reward associated?
Only transactions are distributed to the miners to be executed.
The calls to view functions are executed by the web3 provider. If you run your own node the query will be executed locally, if you use a ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
evm × 747solidity × 309
contract-development × 70
opcode × 70
go-ethereum × 69
gas × 60
bytecode × 47
transactions × 44
assembly × 33
blockchain × 32
contract-invocation × 30
remix × 29
contract-design × 28
storage × 27
web3js × 25
security × 20
mining × 18
contract-debugging × 15
contract-deployment × 14
abi × 14
compilation × 14
yellow-paper × 13
truffle × 12
ether × 12
etherscan × 11