diff --git a/src/library/account.cairo b/src/library/account.cairo index 09b1705e..6456607a 100644 --- a/src/library/account.cairo +++ b/src/library/account.cairo @@ -13,4 +13,3 @@ trait IAccount { self: @TContractState, hash: felt252, signature: Array ) -> felt252; } - diff --git a/src/library/asserts.cairo b/src/library/asserts.cairo index e6737183..d3b6ea85 100644 --- a/src/library/asserts.cairo +++ b/src/library/asserts.cairo @@ -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 = diff --git a/src/library/calls.cairo b/src/library/calls.cairo index d86a9425..ed581c86 100644 --- a/src/library/calls.cairo +++ b/src/library/calls.cairo @@ -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) -> Array> { let mut result: Array> = ArrayTrait::new(); let mut idx = 0; diff --git a/src/library/outside_execution.cairo b/src/library/outside_execution.cairo index b9dc78de..1fde2259 100644 --- a/src/library/outside_execution.cairo +++ b/src/library/outside_execution.cairo @@ -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; diff --git a/src/multisig/argent_multisig.cairo b/src/multisig/argent_multisig.cairo index d14fe5d1..a5801593 100644 --- a/src/multisig/argent_multisig.cairo +++ b/src/multisig/argent_multisig.cairo @@ -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') diff --git a/src/multisig/signer_signature.cairo b/src/multisig/signer_signature.cairo index 55438079..fd566f4c 100644 --- a/src/multisig/signer_signature.cairo +++ b/src/multisig/signer_signature.cairo @@ -1,4 +1,3 @@ -use core::option::OptionTrait; use array::{ArrayTrait, SpanTrait}; use serde::Serde; @@ -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)?); } }