diff options
author | Leonid <logvinov.leon@gmail.com> | 2018-01-16 20:34:14 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-16 20:34:14 +0800 |
commit | 0e3bd0c6c19d0e0f6da59294dab5cb338337a1ee (patch) | |
tree | 578ca42f93de05272df0d0fe706cfc358e560004 | |
parent | 62e3feeb94bcbd8dd32cba24a0270b4afabce7e8 (diff) | |
parent | 86668eb7b9bbeb5241aef32241cb2368efb999ae (diff) | |
download | dexon-sol-tools-0e3bd0c6c19d0e0f6da59294dab5cb338337a1ee.tar.gz 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`
-rw-r--r-- | packages/web3-typescript-typings/CHANGELOG.md | 1 | ||||
-rw-r--r-- | packages/web3-typescript-typings/index.d.ts | 2 |
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: { |