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) {
|
function concatSig(v, r, s) {
|
||||||
r = pad_with_zeroes(ethUtil.fromSigned(r))
|
r = pad_with_zeroes(ethUtil.fromSigned(r), 64)
|
||||||
s = pad_with_zeroes(ethUtil.fromSigned(s))
|
s = pad_with_zeroes(ethUtil.fromSigned(s), 64)
|
||||||
v = ethUtil.bufferToInt(v)
|
v = ethUtil.bufferToInt(v)
|
||||||
r = ethUtil.toUnsigned(r).toString('hex')
|
r = ethUtil.toUnsigned(r).toString('hex')
|
||||||
s = ethUtil.toUnsigned(s).toString('hex')
|
s = ethUtil.toUnsigned(s).toString('hex')
|
||||||
|
Loading…
Reference in New Issue
Block a user