Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

create-dapp

Package Overview
Dependencies
Maintainers
6
Versions
97
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-dapp - npm Package Compare versions

Comparing version 3.0.4 to 3.0.5

2

package.json
{
"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 });

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc