Skip to content

Commit

Permalink
fix: hardcode value in constants (#11442)
Browse files Browse the repository at this point in the history
Please read [contributing guidelines](CONTRIBUTING.md) and remove this
line.
  • Loading branch information
IlyasRidhuan authored Jan 23, 2025
1 parent 53ea3af commit dd0684a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions l1-contracts/src/core/libraries/ConstantsGen.sol
Original file line number Diff line number Diff line change
Expand Up @@ -304,4 +304,5 @@ library Constants {
uint256 internal constant PROOF_TYPE_AVM = 4;
uint256 internal constant PROOF_TYPE_ROLLUP_HONK = 5;
uint256 internal constant PROOF_TYPE_ROOT_ROLLUP_HONK = 6;
uint256 internal constant TWO_POW_64 = 18446744073709551616;
}
Original file line number Diff line number Diff line change
Expand Up @@ -758,7 +758,7 @@ pub global PROOF_TYPE_AVM: u32 = 4;
pub global PROOF_TYPE_ROLLUP_HONK: u32 = 5;
pub global PROOF_TYPE_ROOT_ROLLUP_HONK: u32 = 6;

pub global TWO_POW_64: Field = 2.pow_32(64);
pub global TWO_POW_64: Field = 18446744073709551616;

mod test {
use crate::constants::{
Expand Down
1 change: 1 addition & 0 deletions yarn-project/circuits.js/src/constants.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,7 @@ export const PROOF_TYPE_PG = 3;
export const PROOF_TYPE_AVM = 4;
export const PROOF_TYPE_ROLLUP_HONK = 5;
export const PROOF_TYPE_ROOT_ROLLUP_HONK = 6;
export const TWO_POW_64 = 18446744073709551616n;
export enum GeneratorIndex {
NOTE_HASH = 1,
NOTE_HASH_NONCE = 2,
Expand Down

0 comments on commit dd0684a

Please sign in to comment.