mirror of
https://github.com/status-im/safe-react.git
synced 2025-02-17 20:17:02 +00:00
await for tx hash
This commit is contained in:
parent
2136c39ef2
commit
a25443ddd0
@ -57,7 +57,7 @@ export const sendReplaceOwner = async (
|
||||
const ownerToRemoveIndex = owners.findIndex(o => o.address === ownerAddressToRemove)
|
||||
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) {
|
||||
updateSafe({ address: safeAddress, owners: owners.set(ownerToRemoveIndex, newOwner) })
|
||||
|
Loading…
x
Reference in New Issue
Block a user