Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/HerbertSpender/vault-core
/ SetCode
Method
SetCode
state/interface.go:151–151 ·
view source on GitHub ↗
(code []byte)
Source
from the content-addressed store, hash-verified
source not stored for this graph (policy: none)
Callers
15
loadCode
Method · 0.65
TestAccountsDB_SaveAccountSavesCodeAndDataTrieForUserAccount
Function · 0.65
TestAccountsDB_RevertToSnapshotShouldWork
Function · 0.65
TestAccountsDB_RecreateTrieInvalidatesJournalEntries
Function · 0.65
TestAccountsDB_SaveAccountSavesCodeIfCodeHashIsSet
Function · 0.65
TestAccountsDB_saveCode_OldCodeIsNilAndNewCodeIsNotNilAndRevert
Function · 0.65
TestAccountsDB_saveCode_OldCodeIsNilAndNewCodeAlreadyExistsAndRevert
Function · 0.65
TestAccountsDB_saveCode_OldCodeExistsAndNewCodeIsNilAndRevert
Function · 0.65
TestAccountsDB_saveCode_OldCodeExistsAndNewCodeExistsAndRevert
Function · 0.65
TestAccountsDB_saveCode_OldCodeIsReferencedMultipleTimesAndNewCodeIsNilAndRevert
Function · 0.65
TestAccountsDB_RemoveAccountAlsoRemovesCodeAndRevertsCorrectly
Function · 0.65
TestAccountsDB_MainTrieAutomaticallyMarksCodeUpdatesForEviction
Function · 0.65
Implementers
2
UserAccountStub
testscommon/state/userAccountStub.go
AccountWrapMock
testscommon/state/accountWrapperMock.g
Calls
no outgoing calls
Tested by
15
TestAccountsDB_SaveAccountSavesCodeAndDataTrieForUserAccount
Function · 0.52
TestAccountsDB_RevertToSnapshotShouldWork
Function · 0.52
TestAccountsDB_RecreateTrieInvalidatesJournalEntries
Function · 0.52
TestAccountsDB_SaveAccountSavesCodeIfCodeHashIsSet
Function · 0.52
TestAccountsDB_saveCode_OldCodeIsNilAndNewCodeIsNotNilAndRevert
Function · 0.52
TestAccountsDB_saveCode_OldCodeIsNilAndNewCodeAlreadyExistsAndRevert
Function · 0.52
TestAccountsDB_saveCode_OldCodeExistsAndNewCodeIsNilAndRevert
Function · 0.52
TestAccountsDB_saveCode_OldCodeExistsAndNewCodeExistsAndRevert
Function · 0.52
TestAccountsDB_saveCode_OldCodeIsReferencedMultipleTimesAndNewCodeIsNilAndRevert
Function · 0.52
TestAccountsDB_RemoveAccountAlsoRemovesCodeAndRevertsCorrectly
Function · 0.52
TestAccountsDB_MainTrieAutomaticallyMarksCodeUpdatesForEviction
Function · 0.52
TestAccountsDB_RemoveAccountSetsObsoleteHashes
Function · 0.52