Skip to content

Commit e4f6abb

Browse files
committed
chore: format cairo sources
1 parent 5afae27 commit e4f6abb

File tree

4 files changed

+8
-12
lines changed

4 files changed

+8
-12
lines changed

src/lib.cairo

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ pub mod vrf_consumer {
99
}
1010

1111
pub mod vrf_account {
12+
pub mod src9;
1213
pub mod vrf_account;
1314
pub mod vrf_account_component;
14-
pub mod src9;
1515

1616
#[cfg(test)]
1717
pub mod tests {
@@ -40,3 +40,4 @@ pub use types::{PublicKey, Source};
4040
// pub mod test_dice;
4141
// }
4242

43+

src/vrf_account/src9.cairo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
/// interface.
1111
#[starknet::component]
1212
pub mod SRC9Component {
13-
use openzeppelin::account::extensions::src9::{OutsideExecution, interface};
1413
use openzeppelin::account::extensions::src9::snip12_utils::OutsideExecutionStructHash;
14+
use openzeppelin::account::extensions::src9::{OutsideExecution, interface};
1515
use openzeppelin::account::interface::{ISRC6Dispatcher, ISRC6DispatcherTrait};
1616
use openzeppelin::account::utils::execute_calls;
1717
use openzeppelin::introspection::src5::SRC5Component;

src/vrf_account/tests/test_dice.cairo

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@ use super::common::{ANY_CALLER, CONSUMER, CONSUMER_ACCOUNT, VRF_ACCOUNT, ZERO_AD
1010
#[starknet::interface]
1111
pub trait IOutsideExecutionV2<TContractState> {
1212
fn execute_from_outside_v2(
13-
ref self: TContractState,
14-
outside_execution: OutsideExecution,
15-
signature: Span<felt252>,
13+
ref self: TContractState, outside_execution: OutsideExecution, signature: Span<felt252>,
1614
) -> Array<Span<felt252>>;
1715
}
1816

@@ -138,18 +136,16 @@ fn test_outside_execution__must_consume() {
138136

139137
let calls = array![sumbit_random, not_consuming];
140138
let outside_execution = OutsideExecution {
141-
caller: ANY_CALLER,
142-
nonce: 0,
143-
execute_after: 0,
144-
execute_before: 999,
145-
calls: calls.span(),
139+
caller: ANY_CALLER, nonce: 0, execute_after: 0, execute_before: 999, calls: calls.span(),
146140
};
147141
let signature = array![
148142
0x7fecf764944ad39da31b41682b815078d5121fd0c91370e9f9ebc0ac2611332,
149143
0x57fa6fef2cb679ebd9acf214490ac0d3a194513dfa73e81c341a1f8866029fb,
150144
]
151145
.span();
152146

153-
let disp = IOutsideExecutionV2Dispatcher { contract_address: setup.vrf_account.contract_address };
147+
let disp = IOutsideExecutionV2Dispatcher {
148+
contract_address: setup.vrf_account.contract_address,
149+
};
154150
disp.execute_from_outside_v2(outside_execution, signature);
155151
}

src/vrf_account/vrf_account.cairo

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ mod VrfAccount {
77
use openzeppelin::upgrades::UpgradeableComponent;
88
use openzeppelin::upgrades::interface::{IUpgradeAndCall, IUpgradeable};
99
use starknet::ClassHash;
10-
1110
use crate::vrf_account::src9::SRC9Component;
1211
use crate::vrf_account::vrf_account_component::VrfAccountComponent;
1312

0 commit comments

Comments
 (0)