MCPcopy Create free account
hub / github.com/CPChain/chain / revert

Method revert

core/state/journal.go:190–192  ·  view source on GitHub ↗
(s *StateDB)

Source from the content-addressed store, hash-verified

188}
189
190func (ch codeChange) revert(s *StateDB) {
191 s.getStateObject(*ch.account).setCode(common.BytesToHash(ch.prevhash), ch.prevcode)
192}
193
194func (ch codeChange) dirtied() *common.Address {
195 return ch.account

Callers

nothing calls this directly

Calls 2

setCodeMethod · 0.80
getStateObjectMethod · 0.80

Tested by

no test coverage detected