Skip to content

Commit

Permalink
Change aggregator id type
Browse files Browse the repository at this point in the history
  • Loading branch information
fmkra committed Jun 3, 2024
1 parent 568df0c commit ae4f46f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/core/commitments_inbox.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ mod CommitmentsInbox {
struct MMRReceived {
root: felt252,
last_pos: MmrSize,
aggregator_id: usize
aggregator_id: u256
}

#[constructor]
Expand Down Expand Up @@ -212,7 +212,7 @@ mod CommitmentsInbox {
from_address: felt252,
root: felt252,
last_pos: MmrSize,
aggregator_id: usize,
aggregator_id: u256,
mmr_id: MmrId
) {
assert(from_address == self.l1_message_sender.read().into(), 'ONLY_L1_MESSAGE_SENDER');
Expand Down
6 changes: 3 additions & 3 deletions src/core/headers_store.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ trait IHeadersStore<TContractState> {
ref self: TContractState,
root: felt252,
last_pos: MmrSize,
aggregator_id: usize,
aggregator_id: u256,
new_mmr_id: MmrId
);

Expand Down Expand Up @@ -227,7 +227,7 @@ mod HeadersStore {
mmr_id: MmrId,
root: felt252,
last_pos: MmrSize,
aggregator_id: usize
aggregator_id: u256
}

#[derive(Drop, starknet::Event)]
Expand Down Expand Up @@ -468,7 +468,7 @@ mod HeadersStore {
ref self: ContractState,
root: felt252,
last_pos: MmrSize,
aggregator_id: usize,
aggregator_id: u256,
new_mmr_id: MmrId
) {
assert(new_mmr_id != 0, 'NEW_MMR_ID_0_NOT_ALLOWED');
Expand Down

0 comments on commit ae4f46f

Please sign in to comment.