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

Method ValueToString

src/tx/assettx.cpp:240–249  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

238}
239
240string CUserUpdateAsset::ValueToString() const {
241 string s;
242 switch (type) {
243 case OWNER_UID: s += get<CUserID>().ToString(); break;
244 case NAME: s += get<string>(); break;
245 case MINT_AMOUNT: s += std::to_string(get<uint64_t>()); break;
246 default: break;
247 }
248 return s;
249}
250
251string CUserUpdateAsset::ToString(const CAccountDBCache &accountCache) const {
252 string s = "update_type=" + GetUpdateTypeName(type);

Callers 2

ToJsonMethod · 0.45
CheckTxMethod · 0.45

Calls 1

ToStringMethod · 0.45

Tested by

no test coverage detected