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

Commit

Permalink
feat : rpc test fix & declare v0 rpc test added
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 840f38b commit 62b6cd9
Show file tree
Hide file tree
Showing 6 changed files with 60,228 additions and 6 deletions.
4 changes: 4 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/client/rpc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ where
.contract_class_by_class_hash(current_block_hash, txn.class_hash());

if let Some(contract_class) = contract_class {
error!("Contract class already exists: {:?}", contract_class);
log::error!("Contract class already exists: {:?}", contract_class);
return Err(StarknetRpcApiError::ClassAlreadyDeclared);
}

Expand Down
9 changes: 4 additions & 5 deletions crates/node/src/chain_spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,10 @@ pub fn print_development_accounts(genesis_loader: &GenesisLoader) {
let oz_account_address = genesis_loader.data().contracts[2].0.0;
let cairo_1_no_validate_account_address = genesis_loader.data().contracts[3].0.0;

let argent_pk: HexFelt = Felt252Wrapper::from_hex_be(
"0x00c1cf1490de1352865301bb8705143f3ef938f97fdf892f1090dcb5ac7bcd1d",
)
.unwrap()
.into();
let argent_pk: HexFelt =
Felt252Wrapper::from_hex_be("0x00c1cf1490de1352865301bb8705143f3ef938f97fdf892f1090dcb5ac7bcd1d")
.unwrap()
.into();
log::info!("🧪 Using the following development accounts:");
log::info!("🧪 NO VALIDATE with address: {no_validate_account_address:#x} and no pk");
log::info!("🧪 ARGENT with address: {argent_account_address:#x} and pk: {argent_pk:#x}");
Expand Down
8 changes: 8 additions & 0 deletions starknet-rpc-test/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ starknet-test-utils = { workspace = true }
thiserror = { workspace = true }
tokio = { version = "1.36.0", features = ["rt", "macros", "parking_lot"] }
url = "2.4.1"
blockifier = { workspace = true }
starknet_api = { workspace = true }
indexmap = { workspace = true }
parity-scale-codec = { workspace = true }

# [[test]]
# name = "starknet_spec_version"
Expand Down Expand Up @@ -134,3 +138,7 @@ path = "trace_block.rs"
[[test]]
name = "starknet_trace_transaction"
path = "trace_transaction.rs"

[[test]]
name = "madara_declareV0"
path = "declareV0.rs"
Loading

0 comments on commit 62b6cd9

Please sign in to comment.