mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Fix pad with zeroes usage
This commit is contained in:
parent
1fe383f7fb
commit
7430560f7f
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user