Merge pull request from bitcoinjs/addError

Add sanity check for arguments
This commit is contained in:
d-yokoi 2019-12-11 13:41:11 +09:00 committed by GitHub
commit 3f6f5ef97a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 46 additions and 1 deletions
test/fixtures

View file

@ -311,7 +311,7 @@
"inputData": {
"hash": 42
},
"exception": "Error adding input."
"exception": "Invalid arguments for Psbt\\.addInput\\. Requires single object with at least \\[hash\\] and \\[index\\]"
},
{
"description": "should be equal",