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

contracts-bedrock: add some view functions to FaultDisputeGameN #66

Merged
merged 4 commits into from
Oct 30, 2024

Conversation

JustXxx
Copy link

@JustXxx JustXxx commented Oct 2, 2024

To support op-challenger's functionality, this PR slightly modified FaultDisputeGameN.sol:

  • add nBits and maxAttackBranch view functions in FaultDisputeGameN
  • modify the attack branch variable to uint256, to unify with other variable types

Regression tests

forge test --mc FaultDisputeGameN_Test
forge test --mc FaultDisputeN_1v1_Actors_Test

@JustXxx JustXxx requested review from qizhou and dajuguan October 2, 2024 17:45
@dajuguan
Copy link

dajuguan commented Oct 3, 2024

Why attack branch variable's type need to be unify with other variable types?

@JustXxx
Copy link
Author

JustXxx commented Oct 7, 2024

Why attack branch variable's type need to be unify with other variable types?

When calling in Go language, there is no need to handle different data types.

@dajuguan dajuguan changed the title Add a constant query function to FaultDisputeGameN, modify the attack branch variable to uint256, to unify with other variable types. contracts-bedrock: add some view functions to FaultDisputeGameN Oct 20, 2024
qizhou pushed a commit that referenced this pull request Oct 29, 2024
* chore: rename isthmus to interop on solidity files

* chore: rename test file

* chore: update contracts versions (#66)
@dajuguan dajuguan merged commit 2ece90d into develop Oct 30, 2024
2 checks passed
@dajuguan dajuguan deleted the bill/attackbranch branch October 30, 2024 16:07
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.

2 participants