Skip to content
This repository has been archived by the owner on Dec 12, 2022. It is now read-only.

Commit

Permalink
Merge pull request #24 from district0x/metamask_web3
Browse files Browse the repository at this point in the history
Get injected metamask provider from window.ethereum
  • Loading branch information
ginesdt authored Aug 31, 2022
2 parents 1b7b3b6 + b9204a4 commit 3463035
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cljs_web3_next/core.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
;; 'undefined'

(defn default-web3 []
(new Web3 (gget ".?web3.?currentProvider" )))
(new Web3 (or (gget ".?ethereum" ) (gget ".?web3.?currentProvider" ))))


(def version-ethereum
Expand Down

0 comments on commit 3463035

Please sign in to comment.