Skip to content

Commit

Permalink
✨ Added getBlockNumber() method to BaseProvider (#125)
Browse files Browse the repository at this point in the history
* πŸ§ͺ Scaffolded test for getBlockNumber

* ✨ Passing getBlockNumber

* πŸ“ Added inline documentation for getBlockNumber

* ⬆ Post-commit script packages, readme, and chains

* πŸ› Fix bad import causing error

* add example

Co-authored-by: daws.eth <[email protected]>
  • Loading branch information
arimgibson and dawsbot authored May 19, 2022
1 parent 1cc8cf0 commit c4d3565
Show file tree
Hide file tree
Showing 6 changed files with 163 additions and 109 deletions.
208 changes: 104 additions & 104 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
"@types/jest-dev-server": "^5.0.0",
"@types/node": "^16.10.1",
"@types/prettier": "^2.4.4",
"@typescript-eslint/eslint-plugin": "^5.23.0",
"@typescript-eslint/parser": "^5.23.0",
"@typescript-eslint/eslint-plugin": "^5.25.0",
"@typescript-eslint/parser": "^5.25.0",
"body-parser": "^1.19.0",
"dotenv": "^16.0.0",
"eslint": "^8.15.0",
Expand Down
3 changes: 2 additions & 1 deletion src/classes/utils/fetchers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ type RPCMethodName =
| 'eth_getBalance'
| 'eth_getTransactionByHash'
| 'eth_getTransactionReceipt'
| 'eth_getTransactionCount';
| 'eth_getTransactionCount'
| 'eth_blockNumber';
export function buildRPCPostBody(method: RPCMethodName, params: unknown[]) {
return {
jsonrpc: '2.0',
Expand Down
Loading

1 comment on commit c4d3565

@vercel
Copy link

@vercel vercel bot commented on c4d3565 May 19, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

essential-eth – ./

essential-eth-earnifi.vercel.app
essential-eth-git-master-earnifi.vercel.app
essential-eth.vercel.app

Please sign in to comment.