Skip to content

Commit

Permalink
Merge main-mempool into main (conflict resolution).
Browse files Browse the repository at this point in the history
  • Loading branch information
elintul committed Jun 27, 2024
1 parent 2694ca9 commit eb5697b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 19 deletions.
8 changes: 5 additions & 3 deletions src/rpc_transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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)
);
}

Expand Down Expand Up @@ -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<StarkFelt>,
pub sierra_program: Vec<Felt>,
pub contract_class_version: String,
pub entry_points_by_type: EntryPointByType,
pub abi: String,
Expand Down
16 changes: 0 additions & 16 deletions src/rpc_transaction_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit eb5697b

Please sign in to comment.