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

Commit fd64336

Browse files
authored
Fix test_get_nonce_at (#910)
* Fix test_get_nonce_at * Rely on another contract
1 parent a46e33b commit fd64336

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

rpc_state_reader/src/lib.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -288,16 +288,18 @@ mod tests {
288288
#[test]
289289
fn test_get_nonce_at() {
290290
let rpc_state = RpcState::new(
291-
RpcChain::MainNet,
291+
RpcChain::TestNet,
292292
BlockValue::Tag(serde_json::to_value("latest").unwrap()),
293293
);
294+
// Contract deployed by xqft which will not be used again, so nonce changes will not break
295+
// this test.
294296
let address = Address(felt_str!(
295-
"00b081f7ba1efc6fe98770b09a827ae373ef2baa6116b3d2a0bf5154136573a9",
297+
"07185f2a350edcc7ea072888edb4507247de23e710cbd56084c356d265626bea",
296298
16
297299
));
298300
assert_eq!(
299301
rpc_state.get_nonce_at(&address).unwrap(),
300-
felt_str!("1", 16)
302+
felt_str!("0", 16)
301303
);
302304
}
303305

0 commit comments

Comments
 (0)