Skip to content

Commit

Permalink
accept null as params
Browse files Browse the repository at this point in the history
  • Loading branch information
makemake-kbo committed Mar 27, 2024
1 parent 6cca9ac commit 43be747
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hrotti/methods.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
from typing import Any, List
from typing import Any, List, Optional

from pydantic import BaseModel


class RPCRequest(BaseModel):
jsonrpc: str
method: str
params: List[Any] = []
params: Optional[List[Any]] = None
id: int


Expand Down

0 comments on commit 43be747

Please sign in to comment.