2022 Developer Survey is open! Take survey.

Hot answers tagged

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 ...
user avatar
  • 4,934
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 ...
user avatar
  • 4,934
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 ...
user avatar
  • 4,934
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"...
user avatar
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 ...
user avatar
  • 4,934
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 ...
user avatar
  • 29.3k

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