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

solana: Add missing test cases to test suite #320

Open
9 tasks
johnsaigle opened this issue Mar 19, 2024 · 1 comment
Open
9 tasks

solana: Add missing test cases to test suite #320

johnsaigle opened this issue Mar 19, 2024 · 1 comment

Comments

@johnsaigle
Copy link
Collaborator

johnsaigle commented Mar 19, 2024

Cargo tests

  • unregistered peer can't transfer
  • can't transfer to unregistered peer
  • can't transfer more than balance
  • wrong inbox accounts
  • paused contracts

https://github.com/wormhole-foundation/example-native-token-transfers/blob/82c8308d81949fdc955379a420b57f656c72a474/solana/programs/example-native-token-transfers/tests/transfer.rs#L48-L53

Anchor

  • Burn mode testing

https://github.com/wormhole-foundation/example-native-token-transfers/blob/82c8308d81949fdc955379a420b57f656c72a474/solana/tests/example-native-token-transfer.ts#L190-L201

@johnsaigle
Copy link
Collaborator Author

johnsaigle commented Mar 21, 2024

https://github.com/wormhole-foundation/example-native-token-transfers/pull/219/files should probably be merged before further work is done here, as it adds useful functions to help with testing

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