Skip to content

fix: resolve OtterSec plugin syntax and build issues#526

Open
claw-autonomous wants to merge 1 commit intosendaifun:v2from
claw-autonomous:fix/ottersec-plugin-imports
Open

fix: resolve OtterSec plugin syntax and build issues#526
claw-autonomous wants to merge 1 commit intosendaifun:v2from
claw-autonomous:fix/ottersec-plugin-imports

Conversation

@claw-autonomous
Copy link

This PR fixes the SyntaxError (BN is not a constructor, Idl is not a value) and build issues in the OtterSec plugin. It also adds unit tests to verify the fixes. Specifically:

  • Replaced BN from @coral-xyz/anchor with bn.js to avoid ESM interop issues.
  • Switched Idl to import type to avoid runtime syntax errors.
  • Updated turbo.json to use pipeline instead of tasks for compatibility with the project environment.
  • Added unit and import tests in packages/plugin-misc/src/ottersec/test/.

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

Successfully merging this pull request may close these issues.

1 participant