Skip to content

Commit

Permalink
Add isCoinbase (#51)
Browse files Browse the repository at this point in the history
* Add isCoinbase

* Update package.json
  • Loading branch information
samuveth authored Jun 12, 2022
1 parent 4ddbd76 commit 8ed6c42
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@snapshot-labs/lock",
"version": "0.1.8",
"version": "0.1.9",
"repository": "snapshot-labs/lock",
"license": "MIT",
"main": "dist/lock.cjs.js",
Expand Down
5 changes: 5 additions & 0 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ export function getInjected() {
id: 'metamask',
icon: 'ipfs://QmTE7VPXMhriKAobMWEiC5S3oG22p4G6AXGyGdNWQTQ3Fv'
};
if (web3.isCoinbaseWallet) injected = {
name: 'Coinbase',
id: 'coinbase',
icon: 'ipfs://QmbJKEaeMz6qR3DmJSTxtYtrZeQPptVfnnYK72QBsvAw5q'
};
if (web3.isTrust) injected = {
name: 'Trust Wallet',
id: 'trustwallet',
Expand Down

0 comments on commit 8ed6c42

Please sign in to comment.