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

Fix assignment syntax for native_token_address in Cairo code #1661

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

defitricks
Copy link

In the original code, the assignment for native_token_address was written as:

let (native_token_address) = Kakarot_native_token_address.read();

This included unnecessary parentheses, which is incorrect in Cairo syntax. The correct assignment should be:

let native_token_address = Kakarot_native_token_address.read();

The fix is important because using parentheses in this context would cause a syntax error or unexpected behavior in the Cairo language, preventing the code from compiling or running correctly. Removing the parentheses ensures the proper assignment syntax and maintains the correctness of the code.

This update resolves the issue and improves the overall stability and readability of the code.

Pull request type

Please check the type of change your PR introduces:

  • Code style update (formatting, renaming)

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

Successfully merging this pull request may close these issues.

1 participant