MCPcopy Create free account
hub / github.com/Jesserc/gevm / extcodesize

Function extcodesize

gevm/instructions.go:387–392  ·  view source on GitHub ↗

This is a mocked version and doesn't behave exactly as it would in a real EVM. extcodesize pushes a mocked code size (0) of an external account onto the stack.

(evm *EVM)

Source from the content-addressed store, hash-verified

385//
386// extcodesize pushes a mocked code size (0) of an external account onto the stack.
387func extcodesize(evm *EVM) {
388 _ = evm.Stack.Pop() // Pop external address off the stack
389 evm.Stack.Push(uint256.NewInt(0)) // push 0x0
390 evm.PC++
391 evm.deductGas(2)
392}
393
394// This is a mocked version and doesn't behave exactly as it would in a real EVM.
395//

Callers

nothing calls this directly

Calls 3

PopMethod · 0.80
PushMethod · 0.80
deductGasMethod · 0.80

Tested by

no test coverage detected