Skip to content

Commit

Permalink
Fix timestamp test
Browse files Browse the repository at this point in the history
  • Loading branch information
fmkra committed Jun 3, 2024
1 parent 57efad8 commit babd1d7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/remappers/tests/test_timestamp_remappers.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ fn test_remappers() {
contract_address: timestamp_remappers
};
let start_block: u256 = 9260751; // Mainnet block
let mapper_id = remapper_dispatcher.create_mapper(start_block);
let mapper_id = remapper_dispatcher.create_mapper(start_block, 0);
assert(mapper_id == 0, 'Invalid mapper id');

// An MMR containing { 1, 2, 4, 5, 8 } as string with Starknet Poseidon as a hasher.
Expand Down
2 changes: 1 addition & 1 deletion src/remappers/timestamp_remappers.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ mod TimestampRemappers {
// Fetch from storage
let headers_store_addr = self.headers_store.read();
let mut mapper = self.mappers.read(mapper_id);
assert(mapper.start_block != 0, 'MAPPER_DOES_NOT_EXIST')
assert(mapper.start_block != 0, 'MAPPER_DOES_NOT_EXIST');
let mut mapper_mmr = self.mappers_mmrs.read(mapper_id);

// Determine the expected block number of the first element in the batch
Expand Down

0 comments on commit babd1d7

Please sign in to comment.