Skip to content

Commit

Permalink
chore: get rid of useless typecast
Browse files Browse the repository at this point in the history
  • Loading branch information
steveluscher committed Jan 31, 2023
1 parent b627b81 commit 4f86c8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web3.js/src/connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4464,7 +4464,7 @@ export class Connection {
if (res.result === null) {
throw new Error('invalid blockhash');
}
return res.result as unknown as RpcResponseAndContext<number>;
return res.result;
}

/**
Expand Down

0 comments on commit 4f86c8d

Please sign in to comment.