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

Align integration tests with mainnet behavior #10

Open
Neotamandua opened this issue Feb 10, 2025 · 0 comments
Open

Align integration tests with mainnet behavior #10

Neotamandua opened this issue Feb 10, 2025 · 0 comments

Comments

@Neotamandua
Copy link
Member

Summary

The current integration tests execute calls directly against the EMT contract, which does not accurately replicate mainnet behavior. On mainnet, such calls (by sending a transaction) would be routed through the transfer contract, triggering an inter-contract call (ICC) to the EMT contract.

To align the tests with mainnet behavior, we should modify the test setup so that:

  • The created VM session includes the transfer contract.
  • Each test against the EMT contract is executed as a call to the transfer contract, containing call_data for an ICC to the EMT contract.

Additionally, we should investigate whether further adjustments to the VM (e.g., Config) are necessary. We may also need to mock transitory logic.

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