Add null to err type
This commit is contained in:
@@ -14,7 +14,7 @@ export class InjectedWeb3Subprovider {
|
||||
this.injectedWeb3 = injectedWeb3;
|
||||
}
|
||||
public handleRequest(
|
||||
payload: Web3.JSONRPCRequestPayload, next: () => void, end: (err: Error, result: any) => void,
|
||||
payload: Web3.JSONRPCRequestPayload, next: () => void, end: (err: Error|null, result: any) => void,
|
||||
) {
|
||||
switch (payload.method) {
|
||||
case 'web3_clientVersion':
|
||||
|
||||
Reference in New Issue
Block a user