Fixed isType for null values.
This commit is contained in:
parent
46a55a1d99
commit
e4d5786861
@ -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> {
|
||||
|
Loading…
Reference in New Issue
Block a user