Assert uses strictEqual instead of direct comparison
This commit is contained in:
parent
1d1306b054
commit
f3a55f63dc
1 changed files with 1 additions and 1 deletions
|
@ -381,7 +381,7 @@ Script.createOutputScript = function(address, network) {
|
|||
return script
|
||||
}
|
||||
|
||||
assert(address.version === network.pubKeyHash)
|
||||
assert.strictEqual(address.version, network.pubKeyHash, 'Unknown address type')
|
||||
|
||||
// Standard pay-to-pubkey-hash
|
||||
script.writeOp(Opcode.map.OP_DUP)
|
||||
|
|
Loading…
Reference in a new issue