Skip to content
This repository was archived by the owner on Apr 25, 2024. It is now read-only.
This repository was archived by the owner on Apr 25, 2024. It is now read-only.

JS error when attempting to spend from script explorer #320

Description

@waldenraines

I'm submitting a…

  • Regression (a behavior that used to work and stopped working in a new release)
  • Bug report
  • Feature request
  • Documentation issue or request
  • Support request

Expected Behavior

Able to spend from script explorer.

Current Behavior

Uncaught Error: Invalid checksum
    at Object.decode (base.js:41:25)
    at Function.fromBase58 (keys.js:285:58)
    at getMaskedDerivation (keys.js:609:33)
    at SignatureImporter.jsx? [sm]:609:18
    at Array.map (<anonymous>)
    at Function.mapStateToProps [as mapToProps] (SignatureImporter.jsx? [sm]:608:7)
    at mapToPropsProxy (wrapMapToProps.js:41:46)
    at Function.detectFactoryAndVerify (wrapMapToProps.js:50:19)
    at mapToPropsProxy (wrapMapToProps.js:41:46)
    at handleFirstCall (selectorFactory.js:23:18)

Possible Solution

Fix bug.

Steps to Reproduce (for bugs)

  1. Obtain wallet
  2. Copy script from an address in the wallet (only tested with P2SH)
  3. Paste into script explorer
  4. Paste in address
  5. Click gather signatures
  6. Note error

Environment

  • Where are you running caravan: localhost
  • Operating system: Linux
  • Browser and version: All
> npm ls caravan unchained-bitcoin unchained-wallets; echo -e npm: `npm -v` \\nnode: `node -v`;  uname -a | xargs echo | cut -d " " -f 1,3-15 || sw_vers
caravan@0.6.0 /home/walden/code/caravan
├── unchained-bitcoin@0.4.1
└─┬ unchained-wallets@0.5.1
  └── unchained-bitcoin@0.4.1 deduped

npm: `npm -v`
node: `node -v`
Linux 6.0.6-76060006-generic #202210290932~1667401208~22.04~d2df702 SMP PREEMPT_DYNAMIC Wed N x86_64 x86_64 x86_64 GNU/Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions