From a2cdb953ea97ef8e1adaca027bce0c1332bb0c7c Mon Sep 17 00:00:00 2001 From: Yulieth Lubo Date: Thu, 1 Nov 2018 00:58:51 -0500 Subject: [PATCH] Typo: sigwit to segwit --- js/coin.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/coin.js b/js/coin.js index 73f7d31..c168678 100644 --- a/js/coin.js +++ b/js/coin.js @@ -1039,11 +1039,11 @@ var extract = this.extractScriptKey(index); if(!coinjs.useForkId && extract['type'] != 'segwit'){ - return {'result':0, 'fail':'txtype', 'response':'sighash-witnessv0 is only for sigwit when forkid is not enabled'}; + return {'result':0, 'fail':'txtype', 'response':'sighash-witnessv0 is only for segwit when forkid is not enabled'}; } var scriptcode = Crypto.util.hexToBytes(extract['script']); - if(extract['type'] == 'sigwit') { + if(extract['type'] == 'segwit') { if(scriptcode[0] != 0){ return {'result':0, 'fail':'scriptcode', 'response':'redeemscript is not valid'}; }