From 4f86c8d139733eeab9cf7d72a0258753ef111908 Mon Sep 17 00:00:00 2001 From: steveluscher Date: Tue, 31 Jan 2023 07:05:06 +0000 Subject: [PATCH] chore: get rid of useless typecast --- web3.js/src/connection.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web3.js/src/connection.ts b/web3.js/src/connection.ts index cbe1be8f71b2ef..e4efa497ea1d63 100644 --- a/web3.js/src/connection.ts +++ b/web3.js/src/connection.ts @@ -4464,7 +4464,7 @@ export class Connection { if (res.result === null) { throw new Error('invalid blockhash'); } - return res.result as unknown as RpcResponseAndContext; + return res.result; } /**