MCPcopy Create free account
hub / github.com/WaykiChain/WaykiChain / GetContractAccount

Method GetContractAccount

src/persistence/contractdb.cpp:22–26  ·  view source on GitHub ↗

contract account ******************************/

Source from the content-addressed store, hash-verified

20
21/************************ contract account ******************************/
22bool CContractDBCache::GetContractAccount(const CRegID &contractRegId, const string &accountKey,
23 CAppUserAccount &appAccOut) {
24 auto key = std::make_pair(CRegIDKey(contractRegId), accountKey);
25 return contractAccountCache.GetData(key, appAccOut);
26}
27
28bool CContractDBCache::SetContractAccount(const CRegID &contractRegId, const CAppUserAccount &appAccIn) {
29 if (appAccIn.IsEmpty()) {

Callers 6

BOOST_FIXTURE_TEST_CASEFunction · 0.80
getcontractassetsFunction · 0.80
getcontractaccountinfoFunction · 0.80
listcontractassetsFunction · 0.80
ExTransferContractAssetFunction · 0.80
GetAppUserAccountMethod · 0.80

Calls 2

CRegIDKeyClass · 0.85
GetDataMethod · 0.45

Tested by 1

BOOST_FIXTURE_TEST_CASEFunction · 0.64