create-dapp
Advanced tools
Comparing version 3.0.4 to 3.0.5
{ | ||
"name": "create-dapp", | ||
"version": "3.0.4", | ||
"version": "3.0.5", | ||
"description": "Create React Ethereum apps, ready to use with Ledger and MetaMask", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -17,5 +17,3 @@ // @flow | ||
account: string, | ||
onLogout: () => void, | ||
error: ?Error, | ||
pending: boolean | ||
onLogout: () => void | ||
}, | ||
@@ -22,0 +20,0 @@ * |
@@ -39,3 +39,8 @@ // @flow | ||
try { | ||
this.setState({ selectedWalletIndex, pending: true, accounts: null }); | ||
this.setState({ | ||
selectedWalletIndex, | ||
pending: true, | ||
accounts: null, | ||
error: null | ||
}); | ||
const web3 = await wallet.getWeb3(); | ||
@@ -49,3 +54,8 @@ const accounts = await new Promise((resolve, reject) => { | ||
if (accounts.length === 0) throw new Error("no accounts found"); | ||
this.setState({ web3, accounts, pending: false }); | ||
this.setState({ | ||
web3, | ||
accounts, | ||
pending: false, | ||
error: null | ||
}); | ||
} catch (error) { | ||
@@ -52,0 +62,0 @@ this.setState({ error, pending: false }); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
21266
425