Don't bind to the entire batch, solely the network and ID

This avoids needing to know the Batch in advance, avoiding a race condition.
This commit is contained in:
Luke Parker
2023-08-24 18:52:31 -04:00
parent 67109c648c
commit dc2656a538
3 changed files with 29 additions and 40 deletions

View File

@@ -53,7 +53,7 @@ async fn test_substrate_signer() {
let keys = keys.remove(&i).unwrap();
t = keys.params().t();
let mut signer = SubstrateSigner::<MemDb>::new(keys);
let mut signer = SubstrateSigner::<MemDb>::new(NetworkId::Monero, keys);
let mut db = MemDb::new();
let mut txn = db.txn();
signer.sign(&mut txn, batch.clone()).await;