Skip to content

Commit b5ef9cf

Browse files
committed
[BDAP] Fix asset operation code in script
1 parent 8c2741b commit b5ef9cf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/script/script.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,8 @@ const char* GetOpName(opcodetype opcode)
294294
return "OP_BDAP_SIDECHAIN";
295295
case OP_BDAP_SIDECHAIN_CHECKPOINT:
296296
return "OP_BDAP_SIDECHAIN_CHECKPOINT";
297+
case OP_BDAP_ASSET:
298+
return "OP_BDAP_ASSET";
297299

298300
case OP_INVALIDOPCODE:
299301
return "OP_INVALIDOPCODE";
@@ -313,7 +315,7 @@ bool IsBDAPOp(int op)
313315
{
314316
return op == OP_BDAP_NEW || op == OP_BDAP_DELETE || op == OP_BDAP_EXPIRE || op == OP_BDAP_REVOKE || op == OP_BDAP_MODIFY || op == OP_BDAP_MOVE ||
315317
op == OP_BDAP_ACCOUNT_ENTRY || op == OP_BDAP_LINK_REQUEST || op == OP_BDAP_LINK_ACCEPT || op == OP_BDAP_AUDIT || op == OP_BDAP_CERTIFICATE ||
316-
op == OP_BDAP_IDENTITY || op == OP_BDAP_ID_VERIFICATION || op == OP_BDAP_SIDECHAIN || op == OP_BDAP_SIDECHAIN_CHECKPOINT;
318+
op == OP_BDAP_IDENTITY || op == OP_BDAP_ID_VERIFICATION || op == OP_BDAP_SIDECHAIN || op == OP_BDAP_SIDECHAIN_CHECKPOINT || op == OP_BDAP_ASSET;
317319
}
318320

319321
bool DecodeBDAPScript(const CScript& script, int& op1, int& op2, std::vector<std::vector<unsigned char> >& vvch, CScript::const_iterator& pc)

0 commit comments

Comments
 (0)