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

sentio gen having errors with Fuel ABI #964

Open
dmihal opened this issue Sep 12, 2024 · 0 comments
Open

sentio gen having errors with Fuel ABI #964

dmihal opened this issue Sep 12, 2024 · 0 comments

Comments

@dmihal
Copy link

dmihal commented Sep 12, 2024

  • forc 0.63.5
  • @sentio/cli 2.21.0
  • @sentio/sdk 2.43.0

Running sentio gen gives the following error:

code gen error TypeError: Cannot read properties of undefined (reading 'find')
    at codegenInternal (sentio_indexer/node_modules/@sentio/sdk/lib/fuel/codegen/codegen.js:84:59)

The line in question is this:

const metadataTypeId = abi.rawContents.concreteTypes.find((t) => t.concreteTypeId == logType.concreteTypeId)?.metadataTypeId;

The ABI ingested is the new version of the ABI (which contains concreteTypes), however when I inserted a log into this code to log abi.rawContents, it's showing the old version of the ABI (without concreteTypes). I believe the library is probably downgrading the ABI before reaching this stage.

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