From eb5697bb1d815f87a6e7c66e4916b8573df15dcd Mon Sep 17 00:00:00 2001 From: Elin Tulchinsky Date: Thu, 27 Jun 2024 17:29:51 +0300 Subject: [PATCH] Merge `main-mempool` into `main` (conflict resolution). --- src/rpc_transaction.rs | 8 +++++--- src/rpc_transaction_test.rs | 16 ---------------- 2 files changed, 5 insertions(+), 19 deletions(-) diff --git a/src/rpc_transaction.rs b/src/rpc_transaction.rs index f159295..3555613 100644 --- a/src/rpc_transaction.rs +++ b/src/rpc_transaction.rs @@ -5,10 +5,10 @@ mod rpc_transaction_test; use std::collections::BTreeMap; use serde::{Deserialize, Serialize}; +use starknet_types_core::felt::Felt; use crate::core::{ClassHash, CompiledClassHash, ContractAddress, Nonce}; use crate::data_availability::DataAvailabilityMode; -use crate::hash::StarkFelt; use crate::state::EntryPoint; use crate::transaction::{ AccountDeploymentData, Calldata, ContractAddressSalt, PaymasterData, Resource, ResourceBounds, @@ -49,8 +49,10 @@ macro_rules! implement_ref_getters { impl RPCTransaction { implement_ref_getters!( + (nonce, Nonce), (resource_bounds, ResourceBoundsMapping), - (signature, TransactionSignature) + (signature, TransactionSignature), + (tip, Tip) ); } @@ -146,7 +148,7 @@ pub struct RPCInvokeTransactionV3 { // The contract class in SN_API state doesn't have `contract_class_version`, not following the spec. #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] pub struct ContractClass { - pub sierra_program: Vec, + pub sierra_program: Vec, pub contract_class_version: String, pub entry_points_by_type: EntryPointByType, pub abi: String, diff --git a/src/rpc_transaction_test.rs b/src/rpc_transaction_test.rs index 0f9deb6..1eac74e 100644 --- a/src/rpc_transaction_test.rs +++ b/src/rpc_transaction_test.rs @@ -4,27 +4,11 @@ use rstest::rstest; use starknet_types_core::felt::Felt; use crate::core::{ClassHash, CompiledClassHash, ContractAddress, Nonce, PatriciaKey}; -<<<<<<< HEAD:src/external_transaction_test.rs -use crate::external_transaction::{ - ContractClass, DataAvailabilityMode, ExternalDeclareTransaction, ExternalDeclareTransactionV3, - ExternalDeployAccountTransaction, ExternalDeployAccountTransactionV3, - ExternalInvokeTransaction, ExternalInvokeTransactionV3, ExternalTransaction, -}; -||||||| 0f49f20:src/external_transaction_test.rs -use crate::external_transaction::{ - ContractClass, DataAvailabilityMode, ExternalDeclareTransaction, ExternalDeclareTransactionV3, - ExternalDeployAccountTransaction, ExternalDeployAccountTransactionV3, - ExternalInvokeTransaction, ExternalInvokeTransactionV3, ExternalTransaction, -}; -use crate::hash::{StarkFelt, StarkHash}; -======= -use crate::hash::{StarkFelt, StarkHash}; use crate::rpc_transaction::{ ContractClass, DataAvailabilityMode, RPCDeclareTransaction, RPCDeclareTransactionV3, RPCDeployAccountTransaction, RPCDeployAccountTransactionV3, RPCInvokeTransaction, RPCInvokeTransactionV3, RPCTransaction, ResourceBoundsMapping, }; ->>>>>>> origin/main-mempool:src/rpc_transaction_test.rs use crate::transaction::{ AccountDeploymentData, Calldata, ContractAddressSalt, PaymasterData, ResourceBounds, Tip, TransactionSignature,