Skip to content

Commit

Permalink
more cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
mvadari committed Jan 3, 2025
1 parent e8808de commit 65f2cba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions xrpl/models/requests/submit.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
from __future__ import annotations

from dataclasses import dataclass, field
from typing import Any, Dict, Type
from typing import Any, Dict, Type, cast

from typing_extensions import Self

Expand Down Expand Up @@ -79,6 +79,6 @@ def from_dict(cls: Type[Self], value: Dict[str, Any]) -> Self:

if cls.__name__ == "Submit":
if "tx_blob" in value:
return SubmitOnly.from_dict(value) # type: ignore
return SignAndSubmit.from_dict(value) # type: ignore
return cast(Self, SubmitOnly.from_dict(value))
return cast(Self, SignAndSubmit.from_dict(value))
return super(Submit, cls).from_dict(value)

0 comments on commit 65f2cba

Please sign in to comment.