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

e2e test for SGT #101

Closed
Tracked by #100
blockchaindevsh opened this issue Nov 30, 2024 · 2 comments
Closed
Tracked by #100

e2e test for SGT #101

blockchaindevsh opened this issue Nov 30, 2024 · 2 comments
Assignees

Comments

@blockchaindevsh
Copy link
Collaborator

No description provided.

@dajuguan dajuguan self-assigned this Dec 7, 2024
@qizhou
Copy link

qizhou commented Dec 9, 2024

A list of manual tests is done here: https://perfect-amphibian-929.notion.site/SWC-Devnet-1282e493e88380648486d4961eb91a8d

To be more specific, we want to test

  • SGT without native balance. The SGT balance difference should equal to tx cost.
  • Full SGT payment with the native balance
  • Partial SGT payment with native balance, where SGT becomes zero, and the rest of gas is paid by native. This ensures that as long as SGT + native balance >= tx cost, we will always accept the tx
  • Insufficient gas with both SGT and native balance, i.e., SGT + native balance < tx cost

Besides these, we should also check whether the balances of the vaults (fee recipients) are expected.

@dajuguan
Copy link

Done in #125

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

3 participants