Reverse fix signatures order in tx data
This commit is contained in:
parent
c5ac8942b5
commit
754832dd5d
|
@ -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.toLowerCase()] = obj // eslint-disable-line no-param-reassign
|
map[obj.owner.address] = obj // eslint-disable-line no-param-reassign
|
||||||
return map
|
return map
|
||||||
}, {})
|
}, {})
|
||||||
|
|
||||||
if (preApprovingOwner) {
|
if (preApprovingOwner) {
|
||||||
confirmationsMap[preApprovingOwner.toLowerCase()] = { owner: preApprovingOwner }
|
confirmationsMap[preApprovingOwner] = { owner: preApprovingOwner }
|
||||||
}
|
}
|
||||||
|
|
||||||
let sigs = '0x'
|
let sigs = '0x'
|
||||||
|
|
Loading…
Reference in New Issue