mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 20:29:23 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user