Skip to content

Commit b3d0506

Browse files
Strip params if null is passed (#292)
* Strip params if null * Bump coverage
1 parent f10765d commit b3d0506

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

jest.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const baseConfig = {
4545
// An object that configures minimum threshold enforcement for coverage results
4646
coverageThreshold: {
4747
global: {
48-
branches: 65.11,
48+
branches: 65.43,
4949
functions: 65.65,
5050
lines: 66.74,
5151
statements: 66.81,

src/BaseProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ export abstract class BaseProvider extends SafeEventEmitter {
209209
}
210210

211211
const payload =
212-
params === undefined
212+
params === undefined || params === null
213213
? {
214214
method,
215215
}

0 commit comments

Comments
 (0)