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

Function tload

gevm/instructions.go:682–690  ·  view source on GitHub ↗

Transient storage operations

(evm *EVM)

Source from the content-addressed store, hash-verified

680
681// Transient storage operations
682func tload(evm *EVM) {
683 slotU256 := evm.Stack.Pop()
684 v := evm.Transient.Load(int(slotU256.Uint64()))
685 valueU256 := uint256.NewInt(0).SetBytes32(v[:])
686
687 evm.deductGas(100)
688 evm.Stack.Push(valueU256)
689 evm.PC++
690}
691
692func tstore(evm *EVM) {
693 slotU256 := evm.Stack.Pop()

Callers

nothing calls this directly

Calls 4

PopMethod · 0.80
deductGasMethod · 0.80
PushMethod · 0.80
LoadMethod · 0.45

Tested by

no test coverage detected