Skip to content
Snippets Groups Projects

[fix] #1200 Redefine unlock conditions

13 files
+ 451
221
Compare changes
  • Side-by-side
  • Inline

Files

import {CommonConstants} from "../../../lib/common-libs/constants"
import {CommonConstants} from "../constants"
import {GenericParser} from "./GenericParser"
import {rawer} from "../../../lib/common-libs/index"
import { unlock } from '../txunlock';
import {checkGrammar} from '../txunlock';
export class TransactionParser extends GenericParser {
@@ -106,7 +106,7 @@ function extractOutputs(raw:string) {
for (const line of lines) {
if (line.match(CommonConstants.TRANSACTION.TARGET)) {
outputs.push(line);
const unlocked = unlock(line.split(':')[2], [], {})
const unlocked = checkGrammar(line.split(':')[2])
if (unlocked === null) {
throw Error("Wrong output format")
}
Loading