Fixed isType for null values.

This commit is contained in:
Richard Moore 2018-08-13 16:56:59 +01:00
parent 46a55a1d99
commit e4d5786861
No known key found for this signature in database
GPG Key ID: 525F70A6FCABC295

View File

@ -24,7 +24,7 @@ export function setType(object: any, type: string): void {
}
export function isType(object: any, type: string): boolean {
return (object._ethersType === type);
return (object && object._ethersType === type);
}
export function resolveProperties(object: any): Promise<any> {