Skip to content

Commit 4b5a6d7

Browse files
committed
fix(tap_core): remove need to allow deprecated APIs
Signed-off-by: Joseph Livesey <[email protected]>
1 parent b21bc70 commit 4b5a6d7

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

tap_core/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ rand.workspace = true
1414
tap_eip712_message.workspace = true
1515
tap_graph = { workspace = true, optional = true }
1616
tap_receipt.workspace = true
17-
thegraph-core.workspace = true
17+
thegraph-core = { workspace = true, features = ["alloy-signer-mnemonic"] }
1818
thiserror.workspace = true
1919
tokio.workspace = true
2020

tap_core/tests/rav_test.rs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,9 @@ use tap_core::{
1818
tap_eip712_domain,
1919
};
2020
use tap_graph::{Receipt, ReceiptAggregateVoucher};
21-
#[allow(deprecated)]
22-
use thegraph_core::alloy::primitives::{Address, Signature};
2321
use thegraph_core::alloy::{
2422
dyn_abi::Eip712Domain,
23+
primitives::{Address, Signature},
2524
signers::local::{coins_bip39::English, MnemonicBuilder, PrivateKeySigner},
2625
};
2726

@@ -86,8 +85,6 @@ fn check_for_rav_serialization(domain_separator: Eip712Domain) {
8685
}"#;
8786

8887
serde_json::from_str::<Signature>(raw_sig).unwrap();
89-
#[allow(deprecated)]
90-
serde_json::from_str::<Signature>(raw_sig).unwrap();
9188
}
9289

9390
#[rstest]
@@ -119,7 +116,7 @@ async fn rav_storage_adapter_test(domain_separator: Eip712Domain, context: InMem
119116

120117
context.update_last_rav(signed_rav.clone()).await.unwrap();
121118

122-
// Retreive rav
119+
// Retrieve rav
123120
let retrieved_rav = context.last_rav().await;
124121
assert!(retrieved_rav.unwrap().unwrap() == signed_rav);
125122

@@ -148,7 +145,7 @@ async fn rav_storage_adapter_test(domain_separator: Eip712Domain, context: InMem
148145
// Update the last rav
149146
context.update_last_rav(signed_rav.clone()).await.unwrap();
150147

151-
// Retreive rav
148+
// Retrieve rav
152149
let retrieved_rav = context.last_rav().await;
153150
assert!(retrieved_rav.unwrap().unwrap() == signed_rav);
154151
}

0 commit comments

Comments
 (0)