Skip to content

Commit

Permalink
Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas192 committed Feb 25, 2024
1 parent 657031f commit 97c2902
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/appchain.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ mod appchain {
// TODO(#2): reentrancy guard.
// TODO(#3): facts verification.

let state_transition_fact: felt252 = 0x0; // Done in another PR.
let state_transition_fact: felt252 = 0; // Done in another PR.
self.emit(LogStateTransitionFact { state_transition_fact });

// Perform state update
Expand Down
4 changes: 2 additions & 2 deletions tests/test_appchain.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ use starknet::{ContractAddress, storage::StorageMemberAccessTrait};
/// Deploys the appchain contract.
fn deploy_with_owner(owner: felt252) -> (IAppchainDispatcher, EventSpy) {
let contract = snf::declare('appchain');
let calldata = array![owner, 0x0, 0x0, 0x0];
let calldata = array![owner, 0, 0, 0];
let contract_address = contract.deploy(@calldata).unwrap();

let mut spy = snf::spy_events(SpyOn::One(contract_address));
Expand Down Expand Up @@ -179,7 +179,7 @@ fn update_state_ok() {
block_hash: 2885081770536693045243577840233106668867645710434679941076039698247255604327
};

let expected_state_transition_fact = LogStateTransitionFact { state_transition_fact: 0x0 };
let expected_state_transition_fact = LogStateTransitionFact { state_transition_fact: 0 };

_spy
.assert_emitted(
Expand Down

0 comments on commit 97c2902

Please sign in to comment.