Fix error message for Bitcoin Core v22.0

This commit is contained in:
junderw 2021-11-11 21:18:41 +09:00
parent ee9c76376f
commit e0f1620ee3
No known key found for this signature in database
GPG key ID: B256185D3A971908
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/);
});
},
);