Merge pull request #1743 from bitcoinjs/fix/errorForNewRegtest

Fix error message for Bitcoin Core v22.0
This commit is contained in:
Jonathan Underwood 2021-11-11 21:21:18 +09:00 committed by GitHub
commit f484edde01
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -250,7 +250,7 @@ describe('bitcoinjs-lib (transactions w/ CLTV)', () => {
await regtestUtils.broadcast(tx.toHex()).catch(err => {
assert.throws(() => {
if (err) throw err;
}, /Error: non-final \(code 64\)/);
}, /Error: non-final/);
});
},
);

View file

@ -219,7 +219,7 @@ describe('bitcoinjs-lib (transactions w/ CSV)', () => {
await regtestUtils.broadcast(tx.toHex()).catch(err => {
assert.throws(() => {
if (err) throw err;
}, /Error: non-BIP68-final \(code 64\)/);
}, /Error: non-BIP68-final/);
});
},
);