await for tx hash

This commit is contained in:
Mikhail Mikheev 2019-06-28 12:57:26 +04:00
parent 2136c39ef2
commit a25443ddd0
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ export const sendReplaceOwner = async (
const ownerToRemoveIndex = owners.findIndex(o => o.address === ownerAddressToRemove) const ownerToRemoveIndex = owners.findIndex(o => o.address === ownerAddressToRemove)
const newOwner = makeOwner({ name: values.ownerName, address: values.ownerAddress }) const newOwner = makeOwner({ name: values.ownerName, address: values.ownerAddress })
const txHash = createTransaction(safeAddress, safeAddress, 0, txData, openSnackbar) const txHash = await createTransaction(safeAddress, safeAddress, 0, txData, openSnackbar)
if (txHash) { if (txHash) {
updateSafe({ address: safeAddress, owners: owners.set(ownerToRemoveIndex, newOwner) }) updateSafe({ address: safeAddress, owners: owners.set(ownerToRemoveIndex, newOwner) })