From 29535c4072bd9c71d0c08b7ef79beae7806c3b3c Mon Sep 17 00:00:00 2001 From: yann300 Date: Thu, 6 Jan 2022 16:39:49 +0100 Subject: [PATCH] more types --- apps/remix-ide/src/app/tabs/hardhat-provider.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/remix-ide/src/app/tabs/hardhat-provider.tsx b/apps/remix-ide/src/app/tabs/hardhat-provider.tsx index bb5ea12afa..abb5eabddf 100644 --- a/apps/remix-ide/src/app/tabs/hardhat-provider.tsx +++ b/apps/remix-ide/src/app/tabs/hardhat-provider.tsx @@ -48,7 +48,7 @@ export class HardhatProvider extends Plugin { this.blocked = false } - hardhatProviderDialogBody () { + hardhatProviderDialogBody (): JSX.Element { return (
Note: To run Hardhat network node on your system, go to hardhat project folder and run command:
npx hardhat node
For more info, visit: Hardhat Documentation @@ -56,7 +56,7 @@ export class HardhatProvider extends Plugin {
) } - sendAsync (data: JsonDataRequest) { + sendAsync (data: JsonDataRequest): Promise { return new Promise(async (resolve, reject) => { if (this.blocked) return reject(new Error('provider unable to connect')) // If provider is not set, allow to open modal only when provider is trying to connect @@ -98,7 +98,7 @@ export class HardhatProvider extends Plugin { }) } - async sendAsyncInternal (data: JsonDataRequest, resolve: SuccessRequest, reject: RejectRequest) { + private async sendAsyncInternal (data: JsonDataRequest, resolve: SuccessRequest, reject: RejectRequest): Promise { if (this.provider) { // Check the case where current environment is VM on UI and it still sends RPC requests // This will be displayed on UI tooltip as 'cannot get account list: Environment Updated !!'