MCPcopy Create free account
hub / github.com/ddimaria/rust-blockchain-tutorial / add_account

Method add_account

chain/src/account.rs:55–57  ·  view source on GitHub ↗
(&mut self, key: &Account, data: &AccountData)

Source from the content-addressed store, hash-verified

53 }
54
55 pub(crate) fn add_account(&mut self, key: &Account, data: &AccountData) -> Result<()> {
56 self.upsert(key, data)
57 }
58
59 pub(crate) fn get_account(&self, key: &Account) -> Result<AccountData> {
60 let account = &self

Callers 4

add_empty_accountMethod · 0.80
add_contract_accountMethod · 0.80
add_accountFunction · 0.80
setupFunction · 0.80

Calls 1

upsertMethod · 0.80

Tested by

no test coverage detected