Fix the order of the owners addresses when creating a Safe

This commit is contained in:
Germán Martínez 2019-11-06 15:27:12 +01:00
parent 74f9956b73
commit f71f00cc32
1 changed files with 2 additions and 2 deletions

View File

@ -25,10 +25,10 @@ export type OpenState = {
}
export const createSafe = async (values: Object, userAccount: string, addSafe: AddSafe): Promise<OpenState> => {
const ownerAddresses = getAccountsFrom(values)
const numConfirmations = getThresholdFrom(values)
const name = getSafeNameFrom(values)
const ownersNames = getNamesFrom(values)
const ownerAddresses = getAccountsFrom(values)
await initContracts()
@ -38,7 +38,7 @@ export const createSafe = async (values: Object, userAccount: string, addSafe: A
const safeAddress = safe.logs[0].args.proxy
const safeContract = await getGnosisSafeInstanceAt(safeAddress)
const safeProps = await buildSafe(safeAddress, name)
const owners = getOwnersFrom(ownersNames, ownerAddresses.sort())
const owners = getOwnersFrom(ownersNames, ownerAddresses)
safeProps.owners = owners
addSafe(safeProps)