Skip to content

Commit

Permalink
Fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
ClaireGuerreGiordano committed Sep 20, 2024
1 parent dd09ea5 commit 7a6570c
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions src/erc7730/mapper/mapper.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# from pydantic import AnyUrl
# from erc7730.common.pydantic import model_from_json_bytes
# from erc7730.model.context import EIP712JsonSchema, EIP712Context, EIP712, Domain, EIP712Domain
# from erc7730.model.erc7730_descriptor import ERC7730Descriptor, EIP712Context
# from erc7730.model.display import Display, Reference, Field, StructFormats, FieldFormat, Fields, Format, DateParameters, DateEncoding, TokenAmountParameters
# from eip712 import EIP712DAppDescriptor, EIP712ContractDescriptor, EIP712Mapper, EIP712MessageDescriptor, EIP712Field, EIP712Format
# import requests
"""from pydantic import AnyUrl
from erc7730.common.pydantic import model_from_json_bytes
from erc7730.model.context import EIP712JsonSchema, EIP712Context, EIP712, Domain, EIP712Domain
from erc7730.model.erc7730_descriptor import ERC7730Descriptor, EIP712Context
from erc7730.model.display import Display, Reference, FieldFormat, Fields, Format, DateParameters, DateEncoding, TokenAmountParameters
from eip712 import EIP712DAppDescriptor, EIP712ContractDescriptor, EIP712Mapper, EIP712MessageDescriptor, EIP712Field, EIP712Format
import requests
# from erc7730.model.metadata import Metadata
from erc7730.model.metadata import Metadata
"""def to_eip712_mapper(erc7730: ERC7730Descriptor) -> EIP712DAppDescriptor|list[Exception]:
def to_eip712_mapper(erc7730: ERC7730Descriptor) -> EIP712DAppDescriptor|list[Exception]:
exceptions = list[Exception]()
context = erc7730.context
if (context is not None and isinstance(context, EIP712Context)):
Expand Down Expand Up @@ -130,4 +130,5 @@ def to_erc7730_mapper(eip712DappDescriptor: EIP712DAppDescriptor) -> ERC7730Desc
display = Display(definitions=None, formats = formats)
metadata = Metadata(owner=None, info=None, token=None, constants=None, enums=None)
return ERC7730Descriptor(context = context, includes=None, metadata=metadata, display=display)
"""

0 comments on commit 7a6570c

Please sign in to comment.