Skip to content

Commit

Permalink
Merge branch 'development' into bull-run-campaign
Browse files Browse the repository at this point in the history
  • Loading branch information
JIOjosBG committed Jan 5, 2024
2 parents ae1bd38 + 8cb9548 commit 2d2419d
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 17 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -498,4 +498,7 @@ Those contracts (except Ethereum-specific WALLET, xWALLET and SupplyController)
### v0.7.5
- removed embeded Yearn Tesseract card from Earn section
- update the @trezor/connect-web lib to latest from v9
- implement `eth_gasPrice` rpcCall method for gnosisSafe
- implement `eth_gasPrice` rpcCall method for gnosisSafe

### v0.7.6
- ambire-commonv1.0.2 - Hide OKX, Moonbeam, Moonriver, KCC Networks
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ambire-wallet",
"version": "0.7.5",
"version": "0.7.6",
"private": true,
"homepage": "./",
"dependencies": {
Expand All @@ -26,7 +26,7 @@
"@web3-react/abstract-connector": "^6.0.7",
"@web3-react/types": "^6.0.7",
"adex-protocol-eth": "git+https://[email protected]/AmbireTech/adex-protocol-eth.git#4ddebac4109e9709c4cc862ee0708f208dac9ee2",
"ambire-common": "github:AmbireTech/ambire-common#add/bull-run-campaign-dapps",
"ambire-common": "github:AmbireTech/ambire-common#v1.0.2",
"bip44-constants": "^128.0.0",
"blockies-ts": "^1.0.0",
"chart.js": "^3.9.1",
Expand Down
5 changes: 0 additions & 5 deletions src/context/ToastProvider/ToastProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,6 @@ const ToastProvider = ({ children }) => {
{badge ? <div className="badge">{badge}</div> : null}
{content}
</div>
{sticky ? (
<div className="close" onClick={() => removeToast(id)}>
<MdOutlineClose />
</div>
) : null}
</div>
</CSSTransition>
)
Expand Down
20 changes: 18 additions & 2 deletions src/hooks/walletConnect/walletConnectV2.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,12 +177,28 @@ export default function useWalletConnectV2({
reason: getSdkError('USER_DISCONNECTED')
})
} catch (e) {
console.log('WC2 disconnect error', e)
// Should happen in extremely rare cases in which the user's
// storage is corrupted and the keychain is not found.
if (e?.message?.includes('No matching key. keychain')) {
try {
await web3wallet.engine.signClient.session.delete(topic, 'USER_DISCONNECTED')
} catch {
addToast(
'Could not disconnect from the dApp. Please contact support if the issue persists.',
{
error: true
}
)
console.log('WC2 disconnect error', e)
}
} else {
console.log('WC2 disconnect error', e)
}
}
}
setIsConnecting(false)
},
[web3wallet]
[web3wallet, addToast]
)

const resolveMany = (ids, resolution) => {
Expand Down

0 comments on commit 2d2419d

Please sign in to comment.