Skip to content
This repository has been archived by the owner on Aug 2, 2024. It is now read-only.

Commit

Permalink
feat : fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Arun Jangra authored and Arun Jangra committed Jun 3, 2024
1 parent 90951ee commit e73623e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion crates/client/rpc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ where
})?;

let (txn_hash, class_hash) = self.declare_tx_common(declare_transaction).await?;

Ok(DeclareV0Result { txn_hash, class_hash })
}
}
Expand Down
2 changes: 1 addition & 1 deletion starknet-rpc-test/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -140,5 +140,5 @@ name = "starknet_trace_transaction"
path = "trace_transaction.rs"

[[test]]
name = "madara_declareV0"
name = "madara_declare_v0"
path = "declareV0.rs"
4 changes: 2 additions & 2 deletions starknet-rpc-test/declareV0.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ async fn fail_non_existing_contract(madara: &ThreadSafeMadaraClient) -> Result<(

#[rstest]
#[tokio::test]
async fn declare_v0_contract(madara: &ThreadSafeMadaraClient) -> Result<(), anyhow::Error> {
async fn declare_v0_contract() -> Result<(), anyhow::Error> {
let path_to_abi = "../starknet-rpc-test/contracts/proxy.json";

let contract_artifact: ContractClassV0Inner =
Expand All @@ -71,7 +71,7 @@ async fn declare_v0_contract(madara: &ThreadSafeMadaraClient) -> Result<(), anyh
signature: TransactionSignature(empty_vector_stark_hash),
nonce: Nonce(StarkFelt(empty_array)),
class_hash: ClassHash(StarkHash { 0: contract_abi_artifact.class_hash().unwrap().to_bytes_be() }),
sender_address: ContractAddress(PatriciaKey { 0: StarkHash { 0: FieldElement::ONE.to_bytes_be() } }),
sender_address: ContractAddress(PatriciaKey(StarkHash { 0: FieldElement::ONE.to_bytes_be() })),
};
let abi_length = contract_abi_artifact.abi.len();

Expand Down

0 comments on commit e73623e

Please sign in to comment.