Fix pad with zeroes usage

This commit is contained in:
Dan Finlay 2016-06-14 15:41:07 -07:00
parent 1fe383f7fb
commit 7430560f7f
1 changed files with 2 additions and 2 deletions

View File

@ -522,8 +522,8 @@ function pad_with_zeroes(number, length){
}
function concatSig(v, r, s) {
r = pad_with_zeroes(ethUtil.fromSigned(r))
s = pad_with_zeroes(ethUtil.fromSigned(s))
r = pad_with_zeroes(ethUtil.fromSigned(r), 64)
s = pad_with_zeroes(ethUtil.fromSigned(s), 64)
v = ethUtil.bufferToInt(v)
r = ethUtil.toUnsigned(r).toString('hex')
s = ethUtil.toUnsigned(s).toString('hex')