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

// TODO: some more tests
// - unregistered peer can't transfer
// - can't transfer to unregistered peer
// - can't transfer more than balance
// - wrong inbox accounts
// - paused contracts

Anchor

  • Burn mode testing

// describe('Burning', () => {
// beforeEach(async () => {
// await ntt.initialize({
// payer,
// owner,
// chain: 'solana',
// mint,
// outboundLimit: new BN(1000000),
// mode: 'burning'
// })
// });
// });

@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