Reverse fix signatures order in tx data

This commit is contained in:
Germán Martínez 2020-01-09 17:46:23 +01:00
parent c5ac8942b5
commit 754832dd5d
1 changed files with 2 additions and 2 deletions

View File

@ -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'