Fix web3 typing defaultAccount not allowing undefined

The default value for the defaultAccount property is undefined,
this happens in real-life scenarios, and so the type should
explicitly warn users about it
This commit is contained in:
Olaf Tomalka
2018-01-15 16:02:42 +01:00
parent 62e3feeb94
commit a53e6db537
2 changed files with 2 additions and 1 deletions

View File

@@ -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

View File

@@ -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: {