mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Throws, explicits and trivial cleanups
This commit is contained in:
committed by
Nik Bougalis
parent
8e842b5893
commit
ed9f5639a8
@@ -48,7 +48,7 @@ STAccount::STAccount (SField const& n, Buffer&& v)
|
||||
// which throws. If STVar can throw in its constructor, then so can
|
||||
// STAccount.
|
||||
if (v.size() != uint160::bytes)
|
||||
throw std::runtime_error ("Invalid STAccount size");
|
||||
Throw<std::runtime_error> ("Invalid STAccount size");
|
||||
|
||||
default_ = false;
|
||||
memcpy (value_.begin(), v.data (), uint160::bytes);
|
||||
|
||||
Reference in New Issue
Block a user