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

Function timestamp

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

Source from the content-addressed store, hash-verified

469}
470
471func timestamp(evm *EVM) {
472 timeStamp := uint256.NewInt(uint64(evm.Block.Timestamp.Unix()))
473 evm.Stack.Push(timeStamp)
474 evm.PC++
475 evm.deductGas(2)
476}
477
478func number(evm *EVM) {
479 number := uint256.NewInt(uint64(evm.Block.Number))

Callers

nothing calls this directly

Calls 2

PushMethod · 0.80
deductGasMethod · 0.80

Tested by

no test coverage detected