Skip to content

Commit

Permalink
Call after signing or broadcasting transactions from WalletConnect
Browse files Browse the repository at this point in the history
  • Loading branch information
peachbits committed Oct 5, 2024
1 parent b8de671 commit 8343a1f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## Unreleased

- changed: Call `saveTx` after signing or broadcasting transactions from WalletConnect
- fixed: Fixed obscured "done" button display bug on Sepa info display scene for small-screen devices

## 4.15.0
Expand Down
2 changes: 2 additions & 0 deletions src/components/modals/WcSmartContractModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ export const WcSmartContractModal = (props: Props) => {
const spendInfo: EdgeSpendInfo = await wallet.otherMethods.txRpcParamsToSpendInfo(cleanPayload.params[0])
const tx = await wallet.makeSpend(spendInfo)
const signTx = await wallet.signTx(tx)
await wallet.saveTx(signTx)
await walletConnect.approveRequest(topic, requestId, signTx.signedTx)
break
}
Expand All @@ -122,6 +123,7 @@ export const WcSmartContractModal = (props: Props) => {
const tx = await wallet.makeSpend(spendInfo)
const signedTx = await wallet.signTx(tx)
const sentTx = await wallet.broadcastTx(signedTx)
await wallet.saveTx(sentTx)
await walletConnect.approveRequest(topic, requestId, sentTx.txid)
break
}
Expand Down

0 comments on commit 8343a1f

Please sign in to comment.