Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

Commit db29647

Browse files
authored
Extend cairo-native feature to rpc-state crate (#1147)
1 parent 5763f6b commit db29647

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

rpc_state_reader/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ edition = "2021"
55

66
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
77

8+
[features]
9+
cairo-native = ["starknet_in_rust/cairo-native"]
10+
811
[dependencies]
912
ureq = { version = "2.7.1", features = ["json"] }
1013
serde = { version = "1.0", features = ["derive"] }

rpc_state_reader/tests/sir_tests.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,8 +236,14 @@ pub fn execute_tx_configurable(
236236
);
237237

238238
(
239-
tx.execute(&mut state, &block_context, u128::MAX, None)
240-
.unwrap(),
239+
tx.execute(
240+
&mut state,
241+
&block_context,
242+
u128::MAX,
243+
#[cfg(feature = "cairo-native")]
244+
None,
245+
)
246+
.unwrap(),
241247
trace,
242248
receipt,
243249
)

0 commit comments

Comments
 (0)