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

[Bug] Unable to apply system which operates on multiple entities using the ts SDK #47

Closed
GabrielePicco opened this issue Apr 30, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@GabrielePicco
Copy link
Contributor

GabrielePicco commented Apr 30, 2024

Describe the bug
Unable to apply system which operates on multiple entities using the ts SDK

To Reproduce

  • The current ApplySystem function accept only one entity and derive the components PDAs from the programIds
  • Components could be owned by different entities (when the system operates on > 1 entity)
  • The SDK should change to either accept multiple entities, or directly the list of components PDAs
const applySystem = await ApplySystem({
      authority: provider.wallet.publicKey,
      system: updateFooSystem.programId,
      entities: [
          {
              entity: fooEntityPda,
              components: [fooComponentProgram.programId],
          },
          {
              entity: playerEntityPda,
              components: [playerDataComponentProgram.programId],
          }
      ],

  })
@GabrielePicco GabrielePicco added the bug Something isn't working label Apr 30, 2024
@GabrielePicco
Copy link
Contributor Author

Closing as completed in #51

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant