Skip to content

Commit

Permalink
revert more
Browse files Browse the repository at this point in the history
  • Loading branch information
gaetbout committed May 21, 2024
1 parent ec87b49 commit a4a80f2
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 7 deletions.
1 change: 0 additions & 1 deletion src/library/account.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,3 @@ trait IAccount<TContractState> {
self: @TContractState, hash: felt252, signature: Array<felt252>
) -> felt252;
}

2 changes: 1 addition & 1 deletion src/library/asserts.cairo
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use array::SpanTrait;
use zeroable::Zeroable;

use starknet::{get_contract_address, get_caller_address, ContractAddress, account::Call};
use zeroable::Zeroable;

const TRANSACTION_VERSION: felt252 = 1;
const QUERY_VERSION: felt252 =
Expand Down
3 changes: 2 additions & 1 deletion src/library/calls.cairo
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
use argent::library::array_ext::ArrayExtTrait;
use array::{ArrayTrait, SpanTrait};
use starknet::{call_contract_syscall, account::Call};

use argent::library::array_ext::ArrayExtTrait;

fn execute_multicall(mut calls: Span<Call>) -> Array<Span<felt252>> {
let mut result: Array<Span<felt252>> = ArrayTrait::new();
let mut idx = 0;
Expand Down
2 changes: 1 addition & 1 deletion src/library/outside_execution.cairo
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
use array::{ArrayTrait, SpanTrait};
use box::BoxTrait;
use hash::pedersen;
use starknet::{ContractAddress, get_tx_info, get_contract_address, account::Call};
use traits::Into;
use starknet::{ContractAddress, get_tx_info, get_contract_address, account::Call};

const ERC165_OUTSIDE_EXECUTION_INTERFACE_ID: felt252 =
0x68cfd18b92d1907b8ba3cc324900277f5a3622099431ea85dd8089255e4181;
Expand Down
1 change: 0 additions & 1 deletion src/multisig/argent_multisig.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ mod ArgentMultisig {
syscalls::{SyscallResult, replace_class_syscall}, ClassHash, class_hash_const,
get_block_timestamp, get_caller_address, get_tx_info, account::Call
};
use traits::Into;

const EXECUTE_AFTER_UPGRADE_SELECTOR: felt252 =
738349667340360233096752603318170676063569407717437256101137432051386874767; // starknet_keccak('execute_after_upgrade')
Expand Down
3 changes: 1 addition & 2 deletions src/multisig/signer_signature.cairo
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
use core::option::OptionTrait;
use array::{ArrayTrait, SpanTrait};
use serde::Serde;

Expand All @@ -17,6 +16,6 @@ fn deserialize_array_signer_signature(
if serialized.len() == 0 {
break Option::Some(output.span());
}
output.append(Serde::deserialize(ref serialized).unwrap());
output.append(Serde::deserialize(ref serialized)?);
}
}

0 comments on commit a4a80f2

Please sign in to comment.