Skip to content
This repository was archived by the owner on Jan 9, 2025. It is now read-only.

Tests/improve auth tests #1139

Merged
merged 6 commits into from
May 14, 2024
Merged

Conversation

KeneePatel
Copy link
Contributor

@KeneePatel KeneePatel commented May 9, 2024

Time spent on this PR: 3-4 days

Pull request type

Please check the type of change your PR introduces:

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes
  • Other (please describe):

What is the current behavior?

The authority is unset in the initial frame when the exec_auth is being called.

Resolves #1121

What is the new behavior?

  • The test__auth method has been divided into two methods:
    • One with authority set in the initial evm frame
    • Another with the authority unset
  • A new test with authority having some code is introduced
  • To get an evm frame with the authority set, a new helper method is also introduced in the helper.cairo file

This change is Reviewable

@KeneePatel
Copy link
Contributor Author

@enitrat The approach to set the authority is a makeshift one as I thought I should first make a PR with the draft and continue from there. I will leave some comments in the code where I found some issues.

Copy link
Collaborator

@enitrat enitrat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good!

@enitrat enitrat force-pushed the tests/improve_AUTH_tests branch 2 times, most recently from 116afa0 to 8d1fb93 Compare May 13, 2024 14:23
seperated the method of test__auth in test_system_operations.cairo into two methods. one which initializes evm with authority as set and other with authority unset taking a scaffolding pathway. made relevant changes to the python file. added a method in helpers.cairo to initialize an evm frame with authority set. updated readme to reflect correct command for testing units which was likely a typo.
@enitrat enitrat force-pushed the tests/improve_AUTH_tests branch from 8d1fb93 to 389439d Compare May 14, 2024 10:14
@enitrat enitrat force-pushed the tests/improve_AUTH_tests branch from 817c265 to 5ec0ba3 Compare May 14, 2024 10:20
@enitrat enitrat merged commit 7101411 into kkrt-labs:main May 14, 2024
6 checks passed
matthieuauger pushed a commit to matthieuauger/kakarot that referenced this pull request Nov 9, 2024
* chore: add kakarot address to staging docker

* fix staging compose
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

tests: improve AUTH tests
2 participants