Fix signatures order in tx data
This commit is contained in:
parent
18f8c44741
commit
c5ac8942b5
|
@ -28,12 +28,12 @@ export const generateSignaturesFromTxConfirmations = (
|
||||||
// The constant parts need to be sorted so that the recovered signers are sorted ascending
|
// The constant parts need to be sorted so that the recovered signers are sorted ascending
|
||||||
// (natural order) by address (not checksummed).
|
// (natural order) by address (not checksummed).
|
||||||
const confirmationsMap = confirmations.reduce((map, obj) => {
|
const confirmationsMap = confirmations.reduce((map, obj) => {
|
||||||
map[obj.owner.address] = obj // eslint-disable-line no-param-reassign
|
map[obj.owner.address.toLowerCase()] = obj // eslint-disable-line no-param-reassign
|
||||||
return map
|
return map
|
||||||
}, {})
|
}, {})
|
||||||
|
|
||||||
if (preApprovingOwner) {
|
if (preApprovingOwner) {
|
||||||
confirmationsMap[preApprovingOwner] = { owner: preApprovingOwner }
|
confirmationsMap[preApprovingOwner.toLowerCase()] = { owner: preApprovingOwner }
|
||||||
}
|
}
|
||||||
|
|
||||||
let sigs = '0x'
|
let sigs = '0x'
|
||||||
|
|
Loading…
Reference in New Issue