Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vm.debug throws on an unlockingBytecode of length 0 #41

Closed
bitjson opened this issue Feb 6, 2020 · 0 comments
Closed

vm.debug throws on an unlockingBytecode of length 0 #41

bitjson opened this issue Feb 6, 2020 · 0 comments

Comments

@bitjson
Copy link
Member

bitjson commented Feb 6, 2020

(async () => {
  const sha256 = await instantiateSha256();
  const vm = await instantiateVirtualMachineBCH();
  const program = createTestAuthenticationProgramBCH(
    Uint8Array.of(),
    Uint8Array.from([OpcodesBCH.OP_2, OpcodesBCH.OP_2, OpcodesBCH.OP_ADD]),
    sha256,
    BigInt(0)
  );
  console.log('debug', stringify(vm.debug(program)));
})();
@bitjson bitjson closed this as completed in 339f1e5 Feb 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant