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)
| 385 | // |
| 386 | // extcodesize pushes a mocked code size (0) of an external account onto the stack. |
| 387 | func 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 | // |