mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Access base_uint through public members (RIPD-898):
* Updates many (but probably not all) locations that access base_uint private storage. * More calls to access base_uint through members. * Use an iterator to write Serializer collections.
This commit is contained in:
@@ -147,7 +147,7 @@ calcAccountID (PublicKey const& pk)
|
||||
auto const d = static_cast<
|
||||
ripesha_hasher::result_type>(rsh);
|
||||
AccountID id;
|
||||
static_assert(sizeof(d) == sizeof(id), "");
|
||||
static_assert(sizeof(d) == id.size(), "");
|
||||
std::memcpy(id.data(), d.data(), d.size());
|
||||
return id;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user