Fix signatures order in tx data

This commit is contained in:
Germán Martínez 2020-01-09 17:44:54 +01:00
parent 18f8c44741
commit c5ac8942b5
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] = 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'