File tree 3 files changed +9
-5
lines changed
contexts/wallet/wallet_connect/events
3 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 70
70
(if (networks/event-should-be-handled? db event)
71
71
{:fx [[:dispatch [:wallet-connect/process-session-request event]]]}
72
72
{:fx [[:dispatch
73
+ [:wallet-connect/show-session-networks-unsupported-toast event]]
74
+ [:dispatch
73
75
[:wallet-connect/send-response
74
- {:error (wallet-connect/get-sdk-error
75
- constants/wallet-connect-user-rejected-chains-error-key)}]]]})))
76
+ {:request event
77
+ :error (wallet-connect/get-sdk-error
78
+ constants/wallet-connect-user-rejected-chains-error-key)}]]]})))
76
79
77
80
(rf/reg-event-fx
78
81
:wallet-connect/reset-current-request
Original file line number Diff line number Diff line change 71
71
:request proposal
72
72
:session-networks session-networks
73
73
:address (or current-viewing-address
74
- (first available-accounts)))
74
+ (-> available-accounts
75
+ first
76
+ :address )))
75
77
:fx [[:dispatch [:open-modal :screen/wallet.wallet-connect-session-proposal ]]]}
76
78
{:fx [[:dispatch [:wallet-connect/show-session-networks-unsupported-toast proposal]]
77
79
[:dispatch [:wallet-connect/reject-session-proposal proposal]]]}))))
Original file line number Diff line number Diff line change 58
58
max-fees-fiat (wallet-utils/calculate-token-fiat-value {:currency currency
59
59
:balance max-fees-ether
60
60
:token eth-token})
61
- max-fees-fiat-formatted (-> max-fees-ether
62
- (wallet-utils/get-standard-crypto-format eth-token)
61
+ max-fees-fiat-formatted (-> (wallet-utils/get-standard-crypto-format eth-token max-fees-ether)
63
62
(wallet-utils/get-standard-fiat-format currency-symbol
64
63
max-fees-fiat))
65
64
balance (-> eth-token
You can’t perform that action at this time.
0 commit comments