File tree 6 files changed +19
-12
lines changed
resources/images/networks
components/wallet/summary_info
status_im/contexts/wallet/swap
6 files changed +19
-12
lines changed Original file line number Diff line number Diff line change 30
30
31
31
(defn networks
32
32
[values theme]
33
- (let [{:keys [ethereum optimism arbitrum]} values
34
- show-optimism? (and optimism
35
- (or (pos? (:amount optimism))
36
- (= (:amount optimism) " <0.01" )))
37
- show-arbitrum? (and arbitrum
38
- (or (pos? (:amount arbitrum))
39
- (= (:amount arbitrum) " <0.01" )))]
33
+ (let [{:keys [ethereum optimism arbitrum base]} values
34
+ show-optimism? (and optimism
35
+ (or (pos? (:amount optimism))
36
+ (= (:amount optimism) " <0.01" )))
37
+ show-arbitrum? (and arbitrum
38
+ (or (pos? (:amount arbitrum))
39
+ (= (:amount arbitrum) " <0.01" )))
40
+ show-base? (and base
41
+ (or (pos? (:amount base))
42
+ (= (:amount base) " <0.01" )))]
40
43
[rn/view
41
44
{:style style/networks-container
42
45
:accessibility-label :networks }
56
59
[network-amount
57
60
{:network :arbitrum
58
61
:amount (str (:amount arbitrum) " " (or (:token-symbol arbitrum) " ARB" ))
62
+ :theme theme}])
63
+ (when show-base?
64
+ [network-amount
65
+ {:network :base
66
+ :amount (str (:amount base) " " (or (:token-symbol base) " ETH" ))
59
67
:theme theme}])]))
60
68
61
69
(defn- view-internal
Original file line number Diff line number Diff line change 44
44
:hermez (js/require " ../resources/images/networks/Hermez.png" )
45
45
:optimism (js/require " ../resources/images/networks/Optimism.png" )
46
46
:paraswap (js/require " ../resources/images/networks/Paraswap.png" )
47
+ :base (js/require " ../resources/images/networks/Base.png" )
47
48
:polygon (js/require " ../resources/images/networks/Polygon.png" )
48
49
:scroll (js/require " ../resources/images/networks/Scroll.png" )
49
50
:taiko (js/require " ../resources/images/networks/Taiko.png" )
Original file line number Diff line number Diff line change 279
279
(fn [{:keys [db]} [{:keys [sent-transactions swap-data approval-transaction?]}]]
280
280
(let [wallet-transactions (get-in db [:wallet :transactions ] {})
281
281
transactions (utils/transactions->hash-to-transaction-map sent-transactions)
282
- transaction-ids (->> transactions
283
- vals
284
- (map :hash ))
282
+ transaction-ids (keys transactions)
285
283
transaction-id (first transaction-ids)
286
284
transaction-details (cond-> transactions
287
285
:always (assoc-in [transaction-id :tx-type ] :swap )
Original file line number Diff line number Diff line change 4
4
"owner" : " status-im" ,
5
5
"repo" : " status-go" ,
6
6
"version" : " feat/integrate-base-chain" ,
7
- "commit-sha1" : " 85a35c3e6c3bc9ac844a5a87df8d52617ed8eeff " ,
8
- "src-sha256" : " 1575p1ib4ziymmpmqagbr1dizvq9kzvxgk7vn30xcyc25fybbgnk "
7
+ "commit-sha1" : " e60b77602d8f325ad4de3d8b4f3589cbf5279ad7 " ,
8
+ "src-sha256" : " 1l3sb9a8vf1mbx748r5y2r428l6qyz6k04hkwsw6d0qswca0dabr "
9
9
}
You can’t perform that action at this time.
0 commit comments