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

This Package is Practically Impossible to Use #69

Open
bh2smith opened this issue Oct 27, 2024 · 0 comments
Open

This Package is Practically Impossible to Use #69

bh2smith opened this issue Oct 27, 2024 · 0 comments

Comments

@bh2smith
Copy link

bh2smith commented Oct 27, 2024

The Imports #67 issue, and then also

App Data Hex

  1. metadataApi.calculateAppDataHash is not a function
  2. Dig a bit to find deprecated appDataToCid with no suggested replacement.
  3. Attempting to use appDataToCid results in error: Invalid appData provided: data must NOT have additional properties
  4. Attempting to use appDataToCid on JSON.stringified appDataDoc results in same error.

It seems that these other Create Document instructions may be the culprit:

Observe the results of these instructions:

  const appDataDoc = await metadataApi.generateAppDataDoc({
      appDataParams: { appCode: "MY_APP_CODE" },
      metadataParams: { referrerParams: "0x123" },
  });

  console.log(appDataDoc)
  >
{
 appCode: "CoW Swap",
 metadata: {},
 version: "1.3.0",
 appDataParams: {
   appCode: "MY_APP_CODE",
 },
 metadataParams: {
   referrerParams: "0x123",
 },
}

This would explain some of the errors above:

error: Invalid appData provided: data must NOT have additional properties

@bh2smith bh2smith changed the title This Package s Practically Impossible to Use This Package is Practically Impossible to Use Oct 27, 2024
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