aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorLeonid <logvinov.leon@gmail.com>2018-01-16 20:34:14 +0800
committerGitHub <noreply@github.com>2018-01-16 20:34:14 +0800
commit0e3bd0c6c19d0e0f6da59294dab5cb338337a1ee (patch)
tree578ca42f93de05272df0d0fe706cfc358e560004 /packages
parent62e3feeb94bcbd8dd32cba24a0270b4afabce7e8 (diff)
parent86668eb7b9bbeb5241aef32241cb2368efb999ae (diff)
downloaddexon-sol-tools-0e3bd0c6c19d0e0f6da59294dab5cb338337a1ee.tar
dexon-sol-tools-0e3bd0c6c19d0e0f6da59294dab5cb338337a1ee.tar.gz
dexon-sol-tools-0e3bd0c6c19d0e0f6da59294dab5cb338337a1ee.tar.bz2
dexon-sol-tools-0e3bd0c6c19d0e0f6da59294dab5cb338337a1ee.tar.lz
dexon-sol-tools-0e3bd0c6c19d0e0f6da59294dab5cb338337a1ee.tar.xz
dexon-sol-tools-0e3bd0c6c19d0e0f6da59294dab5cb338337a1ee.tar.zst
dexon-sol-tools-0e3bd0c6c19d0e0f6da59294dab5cb338337a1ee.zip
Merge pull request #320 from joincivil/feature/default-account
Fix web3 typing defaultAccount not allowing `undefined`
Diffstat (limited to 'packages')
-rw-r--r--packages/web3-typescript-typings/CHANGELOG.md1
-rw-r--r--packages/web3-typescript-typings/index.d.ts2
2 files changed, 2 insertions, 1 deletions
diff --git a/packages/web3-typescript-typings/CHANGELOG.md b/packages/web3-typescript-typings/CHANGELOG.md
index e77b6e113..46f70d864 100644
--- a/packages/web3-typescript-typings/CHANGELOG.md
+++ b/packages/web3-typescript-typings/CHANGELOG.md
@@ -3,3 +3,4 @@
## v0.9.3 - _January 11, 2018_
* Add type for getData on a contract
+* Fixed the `defaultAccount` not allowing for `undefined` value (#320)
diff --git a/packages/web3-typescript-typings/index.d.ts b/packages/web3-typescript-typings/index.d.ts
index b4fc146b3..ff379cb3d 100644
--- a/packages/web3-typescript-typings/index.d.ts
+++ b/packages/web3-typescript-typings/index.d.ts
@@ -170,7 +170,7 @@ declare module 'web3' {
gasPrice: BigNumber.BigNumber;
accounts: string[];
blockNumber: number;
- defaultAccount: string;
+ defaultAccount?: string;
defaultBlock: Web3.BlockParam;
syncing: Web3.SyncingResult;
compile: {