mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-16 13:01:19 +02:00
Replace READWRITEAS macro with AsBase wrapping function
Co-authored-by: Pieter Wuille <pieter@wuille.net>
This commit is contained in:
parent
1c1a02bbd2
commit
aaaa3fa947
7 changed files with 38 additions and 14 deletions
|
|
@ -434,7 +434,7 @@ public:
|
|||
CScript(std::vector<unsigned char>::const_iterator pbegin, std::vector<unsigned char>::const_iterator pend) : CScriptBase(pbegin, pend) { }
|
||||
CScript(const unsigned char* pbegin, const unsigned char* pend) : CScriptBase(pbegin, pend) { }
|
||||
|
||||
SERIALIZE_METHODS(CScript, obj) { READWRITEAS(CScriptBase, obj); }
|
||||
SERIALIZE_METHODS(CScript, obj) { READWRITE(AsBase<CScriptBase>(obj)); }
|
||||
|
||||
explicit CScript(int64_t b) { operator<<(b); }
|
||||
explicit CScript(opcodetype b) { operator<<(b); }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue