Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ Added getCode() method to BaseProvider #126

Merged
merged 11 commits into from May 23, 2022
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.

6 changes: 3 additions & 3 deletions package.json
Expand Up @@ -22,7 +22,7 @@
"tsc:esm": "tsc -p tsconfig.json",
"tsc:cjs": "tsc -p tsconfig-cjs.json",
"build": "rm -rf lib && npm run compile",
"build:readme": ". ./scripts/markdown-magic/build-readme.sh",
"build:readme": "bash ./scripts/markdown-magic/build-readme.sh",
dawsbot marked this conversation as resolved.
Show resolved Hide resolved
"jest": "jest",
"build:chains-info": "npx ts-node scripts/fetch-chains-info.ts # used in getNetwork()",
"update-deps": "sh ./scripts/pre-commit.sh",
Expand All @@ -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
Expand Up @@ -35,7 +35,8 @@ type RPCMethodName =
| 'eth_getBalance'
| 'eth_getTransactionByHash'
| 'eth_getTransactionReceipt'
| 'eth_getTransactionCount';
| 'eth_getTransactionCount'
| 'eth_getCode';
export function buildRPCPostBody(method: RPCMethodName, params: unknown[]) {
return {
jsonrpc: '2.0',
Expand Down