MTROPOLIS: Fix incorrect dereference result handling

This commit is contained in:
elasota 2022-07-04 17:23:21 -04:00
parent fcf0a79709
commit 6c8555749c

View File

@ -1931,8 +1931,9 @@ bool MiniscriptThread::evaluateTruthOfResult(bool &isTrue) {
return false;
}
if (!dereferenceRValue(0, false)) {
this->error("Failed to dereference Miniscript RValue for truth evaluation");
MiniscriptInstructionOutcome outcome = dereferenceRValue(0, false);
if (outcome != kMiniscriptInstructionOutcomeContinue) {
this->error("Miniscript program result couldn't be dereferenced");
return false;
}