Skip to content
This repository has been archived by the owner on Feb 18, 2020. It is now read-only.

Feature/adding priv key wallet #384

Open
wants to merge 16 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
189 changes: 109 additions & 80 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@
"bignumber.js": "5.0.0",
"connected-react-router": "4.4.1",
"cross-env": "^5.1.6",
"ethereumjs-util": "^5.2.0",
"ethereumjs-wallet": "^0.6.2",
"ethjs-abi": "0.2.1",
"extract-text-webpack-plugin": "^3.0.2",
"history": "4.7.2",
Expand Down
6 changes: 4 additions & 2 deletions src/api/contracts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,10 @@ const getPromisedIntances = () => Promise.all(Contracts.map(contr => contr.deplo

let contractsAPI: ContractsMap

export const promisedContractsMap = async (provider?: Provider) => {
if (contractsAPI) return contractsAPI
export const promisedContractsMap = async (provider?: Provider, overwrite?: boolean) => {
// overwrite is used to tell the API whether or not
// to overwrite the current provider (useful when changing wallets)
if (contractsAPI && !overwrite) return contractsAPI

contractsAPI = await init(provider)
return contractsAPI
Expand Down
Loading