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

Challenge Submission Fails Despite Correct Treasury and Commander Updates in HigherOrder Level #753

Open
shubham562 opened this issue Sep 5, 2024 · 0 comments

Comments

@shubham562
Copy link

Description:

I have successfully interacted with the HigherOrder contract by deploying a hack contract. My hack contract performs the following steps:

  1. Calls the registerTreasury(uint8) function with a value that triggers an underflow, effectively setting the treasury to a large number.
  2. Subsequently, it calls the claimLeadership() function to update the commander to the address of my hack contract.

Capture

Both operations appear to work correctly, as the treasury value is updated as expected, and the commander is set to my hack contract's address. However, despite these changes, the challenge validation process indicates that the level has not been completed.

Steps Taken:

  1. Deployed the Hack contract.
  2. Invoked registerTreasury(uint8) with -1 to cause an underflow and update treasury.
  3. Called claimLeadership() to set commander.

Issue:

The challenge submission process still reports that the level has not been cracked. I’ve double-checked my contract and the challenge requirements, and everything seems to be in order. Could you please assist in identifying why the challenge is not completing despite the expected changes?

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