fix errors when creating tx in safe v1.0.0
- Code was expecting `ExecutionSuccess` event. That's not part of v1.0.0 - `transactionHash` is part of the tx receipt, so no need to extract it from the event - `safeTxHash` is calculated client-side, so no longer needed to get it from tx receipt
This commit is contained in:
parent
8e75e999ef
commit
02bb5211a7
|
@ -219,8 +219,7 @@ const createTransaction = ({
|
|||
const toStoreTx = isExecution
|
||||
? mockedTx.withMutations((record) => {
|
||||
record
|
||||
.set('executionTxHash', receipt.events.ExecutionSuccess.transactionHash)
|
||||
.set('safeTxHash', receipt.events.ExecutionSuccess.returnValues.txHash)
|
||||
.set('executionTxHash', receipt.transactionHash)
|
||||
.set('executor', from)
|
||||
.set('isExecuted', true)
|
||||
.set('isSuccessful', receipt.status)
|
||||
|
|
|
@ -157,8 +157,7 @@ const processTransaction = ({
|
|||
const toStoreTx = isExecution
|
||||
? mockedTx.withMutations((record) => {
|
||||
record
|
||||
.set('executionTxHash', receipt.events.ExecutionSuccess.transactionHash)
|
||||
.set('safeTxHash', receipt.events.ExecutionSuccess.returnValues.txHash)
|
||||
.set('executionTxHash', receipt.transactionHash)
|
||||
.set('blockNumber', receipt.blockNumber)
|
||||
.set('executionDate', record.submissionDate)
|
||||
.set('executor', from)
|
||||
|
|
Loading…
Reference in New Issue