Skip to content

Commit

Permalink
fix: types (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
estebanmino committed Mar 7, 2024
1 parent a11ec59 commit 1eb2876
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rainbow-me/provider",
"version": "0.0.5",
"version": "0.0.6",
"main": "dist/index.js",
"license": "MIT",
"files": [
Expand Down
4 changes: 2 additions & 2 deletions src/handleProviderRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export const handleProviderRequest = ({
const host = (isValidUrl(url) && getDappHost(url)) || '';
const activeSession = getActiveSession({ host });

let response = null;
let response: unknown = null;

switch (method) {
case 'eth_chainId': {
Expand Down Expand Up @@ -330,7 +330,7 @@ export const handleProviderRequest = ({
throw new Error('Address is required');
}

let chainId = null;
let chainId: number | null = null;
if (activeSession) {
chainId = activeSession?.chainId;
} else {
Expand Down
2 changes: 1 addition & 1 deletion src/references/messengers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { RPCMethod } from './ethereum';
export type RequestArguments = {
id?: number;
method: RPCMethod;
params?: Array<unknown> | object;
params?: Array<unknown>;
};

export type RequestResponse =
Expand Down

0 comments on commit 1eb2876

Please sign in to comment.