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

Function tstore

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

Source from the content-addressed store, hash-verified

690}
691
692func tstore(evm *EVM) {
693 slotU256 := evm.Stack.Pop()
694 valueU256 := evm.Stack.Pop()
695 v := common.BytesToHash(valueU256.Bytes())
696
697 evm.deductGas(100)
698 evm.Transient.Store(int(slotU256.Uint64()), v)
699 evm.PC++
700}
701
702// Jump operations
703func jump(evm *EVM) {

Callers

nothing calls this directly

Calls 3

PopMethod · 0.80
deductGasMethod · 0.80
StoreMethod · 0.45

Tested by

no test coverage detected