Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unhandled type Address - please write a mapper for it #97

Open
OscBacon opened this issue May 18, 2023 · 0 comments
Open

unhandled type Address - please write a mapper for it #97

OscBacon opened this issue May 18, 2023 · 0 comments

Comments

@OscBacon
Copy link

Hi, I get the following error when declaring an Address as an entityId type:

Generate Uncrashable Entity Helpersunhandled type Address - please write a mapper for it

yaml file:

networkConfig:
  entityIdPrefixes:
    - networks:
        - mainnet
      prefix: ""
    - networks:
        - mumbai
      prefix: mumbai
entitySettings:
  Contract:
    entityId:
      - name: addressaa
        type: Address
      - name: address
        type: Address       

Generated code:

export function generateContractId(
  addressaa: UNHANDLED_TYPE,address: UNHANDLED_TYPE
): string {
  return ENTITY_ID_PREFIX + "unhandled type in converter UNHANDLED_TYPE - Please fix the converter" + "-" + "unhandled type in converter UNHANDLED_TYPE - Please fix the converter"
}

What gives?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant