Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-fleming committed Feb 19, 2024
1 parent 9f4ed58 commit 4b6ebc6
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 6 deletions.
4 changes: 3 additions & 1 deletion src/tests/mocks/account_mocks.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,9 @@ mod CamelAccountPanicMock {
}

#[external(v0)]
fn isValidSignature(self: @ContractState, hash: felt252, signature: Array<felt252>) -> felt252 {
fn isValidSignature(
self: @ContractState, hash: felt252, signature: Array<felt252>
) -> felt252 {
panic!("Some error");
3
}
Expand Down
13 changes: 10 additions & 3 deletions src/tests/mocks/erc20_mocks.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,9 @@ mod CamelERC20Mock {
#[generate_trait]
impl ExternalImpl of ExternalTrait {
#[external(v0)]
fn allowance(self: @ContractState, owner: ContractAddress, spender: ContractAddress) -> u256 {
fn allowance(
self: @ContractState, owner: ContractAddress, spender: ContractAddress
) -> u256 {
self.erc20.allowance(owner, spender)
}

Expand Down Expand Up @@ -175,7 +177,9 @@ mod SnakeERC20Panic {
}

#[external(v0)]
fn allowance(self: @ContractState, owner: ContractAddress, spender: ContractAddress) -> u256 {
fn allowance(
self: @ContractState, owner: ContractAddress, spender: ContractAddress
) -> u256 {
panic!("Some error");
3
}
Expand Down Expand Up @@ -238,7 +242,10 @@ mod CamelERC20Panic {

#[external(v0)]
fn transferFrom(
ref self: ContractState, sender: ContractAddress, recipient: ContractAddress, amount: u256
ref self: ContractState,
sender: ContractAddress,
recipient: ContractAddress,
amount: u256
) {
panic!("Some error");
}
Expand Down
4 changes: 3 additions & 1 deletion src/tests/mocks/erc721_mocks.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,9 @@ mod SnakeERC721PanicMock {
}

#[external(v0)]
fn set_approval_for_all(ref self: ContractState, operator: ContractAddress, approved: bool) {
fn set_approval_for_all(
ref self: ContractState, operator: ContractAddress, approved: bool
) {
panic!("Some error");
}

Expand Down
4 changes: 3 additions & 1 deletion src/tests/mocks/eth_account_mocks.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,9 @@ mod CamelEthAccountPanicMock {
}

#[external(v0)]
fn isValidSignature(self: @ContractState, hash: felt252, signature: Array<felt252>) -> felt252 {
fn isValidSignature(
self: @ContractState, hash: felt252, signature: Array<felt252>
) -> felt252 {
panic!("Some error");
3
}
Expand Down

0 comments on commit 4b6ebc6

Please sign in to comment.