Skip to content

Commit

Permalink
chore: clean code from bounded_vec remains (keep-starknet-strange#1113)
Browse files Browse the repository at this point in the history
  • Loading branch information
tdelabro committed Sep 18, 2023
1 parent b851410 commit 0aa1f39
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 12 deletions.
1 change: 0 additions & 1 deletion crates/pallets/starknet/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,6 @@ pub mod pallet {
EmitEventError,
StateDiffError,
ContractNotFound,
ReachedBoundedVecLimit,
TransactionConversionError,
SequencerAddressNotValid,
InvalidContractClassForThisDeclareVersion,
Expand Down
6 changes: 3 additions & 3 deletions crates/pallets/starknet/src/tests/invoke_tx.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use blockifier::abi::abi_utils::get_storage_var_address;
use frame_support::{assert_err, assert_ok, bounded_vec};
use frame_support::{assert_err, assert_ok};
use mp_starknet::execution::types::Felt252Wrapper;
use mp_starknet::transaction::compute_hash::ComputeTransactionHash;
use mp_starknet::transaction::{InvokeTransaction, InvokeTransactionV1};
Expand Down Expand Up @@ -342,7 +342,7 @@ fn given_hardcoded_contract_run_invoke_on_argent_account_with_incorrect_signatur
let none_origin = RuntimeOrigin::none();

let mut transaction = get_invoke_argent_dummy();
transaction.signature = bounded_vec!(Felt252Wrapper::ONE, Felt252Wrapper::ONE);
transaction.signature = vec![Felt252Wrapper::ONE, Felt252Wrapper::ONE];

let validate_result = Starknet::validate_unsigned(
TransactionSource::InBlock,
Expand Down Expand Up @@ -385,7 +385,7 @@ fn given_hardcoded_contract_run_invoke_on_braavos_account_with_incorrect_signatu
let none_origin = RuntimeOrigin::none();

let mut transaction = get_invoke_braavos_dummy();
transaction.signature = bounded_vec!(Felt252Wrapper::ONE, Felt252Wrapper::ONE);
transaction.signature = vec![Felt252Wrapper::ONE, Felt252Wrapper::ONE];

let validate_result = Starknet::validate_unsigned(
TransactionSource::InBlock,
Expand Down
8 changes: 0 additions & 8 deletions crates/primitives/starknet/src/block/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,12 @@ mod header;
use alloc::vec::Vec;

pub use header::*;
use sp_core::ConstU32;

use crate::execution::types::Felt252Wrapper;
use crate::traits::hash::HasherT;
use crate::transaction::compute_hash::ComputeTransactionHash;
use crate::transaction::Transaction;

/// Block transactions max size
// TODO: add real value (#250)
pub type MaxTransactions = ConstU32<4294967295>;

/// Maximum number of storage slots per contract
pub type MaxStorageSlots = ConstU32<{ u32::MAX }>;

/// Block Transactions
pub type BlockTransactions = Vec<Transaction>;

Expand Down

0 comments on commit 0aa1f39

Please sign in to comment.