Skip to content

Commit

Permalink
adjust data
Browse files Browse the repository at this point in the history
  • Loading branch information
neotheprogramist committed Feb 8, 2024
1 parent 3b68e52 commit b8ff95c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions fact_registry/tests/test_contract.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ fn test_return_false_before_register() {
let contract_address = deploy_contract('FactRegistry');
let dispatcher = IFactRegistryDispatcher { contract_address };

let program_hash = 1551631761987449313068479026839604705498481570694519235869911227847882150820;
let output_hash = 2336063802160155556507656746920808233007292323159462153734705441523787563728;
let program_hash = 431949093621609208810841068266517186814996852236930169905752529170269197053;
let output_hash = 1724386653908932883192880436251016750228579704032309572637546491466330958184;
let fact = PoseidonImpl::new().update(program_hash).update(output_hash).finalize().into();

let result = dispatcher.is_valid(fact);
Expand All @@ -37,8 +37,8 @@ fn test_valid_proof_registers_fact() {
let config = Config { hash_algorithm: HashAlgorithm::Poseidon, };
dispatcher.verify_and_register_fact(config, stark_proof);

let program_hash = 1551631761987449313068479026839604705498481570694519235869911227847882150820;
let output_hash = 2336063802160155556507656746920808233007292323159462153734705441523787563728;
let program_hash = 431949093621609208810841068266517186814996852236930169905752529170269197053;
let output_hash = 1724386653908932883192880436251016750228579704032309572637546491466330958184;
let fact = PoseidonImpl::new().update(program_hash).update(output_hash).finalize().into();

let result = dispatcher.is_valid(fact);
Expand All @@ -53,8 +53,8 @@ fn test_valid_proof_registers_keccak_fact() {
let config = Config { hash_algorithm: HashAlgorithm::Keccak, };
dispatcher.verify_and_register_fact(config, stark_proof);

let program_hash = 1551631761987449313068479026839604705498481570694519235869911227847882150820;
let output_hash = 2336063802160155556507656746920808233007292323159462153734705441523787563728;
let program_hash = 431949093621609208810841068266517186814996852236930169905752529170269197053;
let output_hash = 1724386653908932883192880436251016750228579704032309572637546491466330958184;
let fact = keccak_u256s_be_inputs(array![program_hash.into(), output_hash.into()].span());

let result = dispatcher.is_valid(fact);
Expand Down

0 comments on commit b8ff95c

Please sign in to comment.