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

Function codesize

gevm/instructions.go:342–347  ·  view source on GitHub ↗
(evm *EVM)

Source from the content-addressed store, hash-verified

340}
341
342func codesize(evm *EVM) {
343 codesize := uint64(len(evm.Code))
344 evm.Stack.Push(uint256.NewInt(0).SetUint64(codesize))
345 evm.PC++
346 evm.deductGas(2)
347}
348
349func codecopy(evm *EVM) {
350 destMemOffsetU256 := evm.Stack.Pop()

Callers

nothing calls this directly

Calls 2

PushMethod · 0.80
deductGasMethod · 0.80

Tested by

no test coverage detected