base64 图片改为 png
This commit is contained in:
parent
e3bacc676a
commit
c70092f1a2
File diff suppressed because one or more lines are too long
Binary file not shown.
After Width: | Height: | Size: 8.2 KiB |
Binary file not shown.
After Width: | Height: | Size: 7.6 KiB |
|
@ -653,32 +653,32 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
'custom-walletlink': {
|
// 'custom-walletlink': {
|
||||||
display: {
|
// display: {
|
||||||
logo: 'https://play-lh.googleusercontent.com/PjoJoG27miSglVBXoXrxBSLveV6e3EeBPpNY55aiUUBM9Q1RCETKCOqdOkX2ZydqVf0',
|
// logo: 'https://play-lh.googleusercontent.com/PjoJoG27miSglVBXoXrxBSLveV6e3EeBPpNY55aiUUBM9Q1RCETKCOqdOkX2ZydqVf0',
|
||||||
name: 'Coinbase',
|
// name: 'Coinbase',
|
||||||
description: 'Connect to Coinbase Wallet (not Coinbase App)'
|
// description: 'Connect to Coinbase Wallet (not Coinbase App)'
|
||||||
},
|
// },
|
||||||
options: {
|
// options: {
|
||||||
appName: 'Coinbase', // Your app name
|
// appName: 'Coinbase', // Your app name
|
||||||
networkUrl: `https://mainnet.infura.io/v3/a4a92ab2377d4bb9a693d96c27c6523e`,
|
// networkUrl: `https://mainnet.infura.io/v3/a4a92ab2377d4bb9a693d96c27c6523e`,
|
||||||
chainId: 1,
|
// chainId: 1,
|
||||||
},
|
// },
|
||||||
package: WalletLink,
|
// package: WalletLink,
|
||||||
connector: async (_, options) => {
|
// connector: async (_, options) => {
|
||||||
const {
|
// const {
|
||||||
appName,
|
// appName,
|
||||||
networkUrl,
|
// networkUrl,
|
||||||
chainId
|
// chainId
|
||||||
} = options
|
// } = options
|
||||||
const walletLink = new WalletLink({
|
// const walletLink = new WalletLink({
|
||||||
appName,
|
// appName,
|
||||||
})
|
// })
|
||||||
const provider = walletLink.makeWeb3Provider(networkUrl, chainId)
|
// const provider = walletLink.makeWeb3Provider(networkUrl, chainId)
|
||||||
await provider.enable()
|
// await provider.enable()
|
||||||
return provider
|
// return provider
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
web3Modal = new Web3Modal({
|
web3Modal = new Web3Modal({
|
||||||
|
@ -697,7 +697,7 @@
|
||||||
// }
|
// }
|
||||||
// }, 5000);
|
// }, 5000);
|
||||||
provider = await web3Modal.connect();
|
provider = await web3Modal.connect();
|
||||||
provider.enable()
|
await provider.enable()
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.log(e)
|
console.log(e)
|
||||||
return message("{{trans('web.Please install MetaMask')}}");
|
return message("{{trans('web.Please install MetaMask')}}");
|
||||||
|
@ -717,6 +717,7 @@
|
||||||
provider.on("networkChanged", async (networkId) => {
|
provider.on("networkChanged", async (networkId) => {
|
||||||
await fetchAccountData();
|
await fetchAccountData();
|
||||||
});
|
});
|
||||||
|
|
||||||
await refreshAccountData();
|
await refreshAccountData();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue