| 238 | } |
| 239 | |
| 240 | string 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 | |
| 251 | string CUserUpdateAsset::ToString(const CAccountDBCache &accountCache) const { |
| 252 | string s = "update_type=" + GetUpdateTypeName(type); |