mirror of
https://github.com/status-im/safe-react.git
synced 2025-01-13 19:44:12 +00:00
WA-238 Fix createTransactions when safe has only one owner
This commit is contained in:
parent
6ee48db1e5
commit
5ce3564cc7
@ -97,10 +97,10 @@ export const createTransaction = async (
|
||||
|
||||
const thresholdIsOne = safe.get('confirmations') === 1
|
||||
if (hasOneOwner(safe) || thresholdIsOne) {
|
||||
const txConfirmationData = gnosisSafe.contract.execTransactionIfApproved(txDestination, valueInWei, '0x', CALL, nonce)
|
||||
const txConfirmationData = gnosisSafe.contract.execTransactionIfApproved.getData(txDestination, valueInWei, '0x', CALL, nonce)
|
||||
const txReceipt = await executeTransaction(txConfirmationData, user, safeAddress)
|
||||
const executedConfirmations: List<Confirmation> = buildExecutedConfirmationFrom(safe.get('owners'), user)
|
||||
return storeTransaction(txName, nonce, txDestination, txValue, user, executedConfirmations, txReceipt.tx, safeAddress, safe.get('confirmations'))
|
||||
return storeTransaction(txName, nonce, txDestination, txValue, user, executedConfirmations, txReceipt, safeAddress, safe.get('confirmations'))
|
||||
}
|
||||
|
||||
const txConfirmationData = gnosisSafe.contract.approveTransactionWithParameters.getData(txDestination, valueInWei, '0x', CALL, nonce)
|
||||
|
Loading…
x
Reference in New Issue
Block a user