mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-09 04:39:24 +00:00
* Remove NetworkId from processor-messages Because intent binds to the sender/receiver, it's not needed for intent. The processor knows what the network is. The coordinator knows which to use because it's sending this message to the processor for that network. Also removes the unused zeroize. * ProcessorMessage::Completed use Session instead of key * Move SubstrateSignId to Session * Finish replacing key with session
This commit is contained in:
@@ -8,7 +8,10 @@ use tokio::time::timeout;
|
||||
|
||||
use serai_db::{DbTxn, Db, MemDb};
|
||||
|
||||
use serai_client::primitives::{NetworkId, Coin, Amount, Balance};
|
||||
use serai_client::{
|
||||
primitives::{NetworkId, Coin, Amount, Balance},
|
||||
validator_sets::primitives::Session,
|
||||
};
|
||||
|
||||
use crate::{
|
||||
Payment, Plan,
|
||||
@@ -140,7 +143,7 @@ pub async fn test_wallet<N: Network>(network: N) {
|
||||
keys_txs.insert(i, (keys, (signable, eventuality)));
|
||||
}
|
||||
|
||||
let txid = sign(network.clone(), keys_txs).await;
|
||||
let txid = sign(network.clone(), Session(0), keys_txs).await;
|
||||
let tx = network.get_transaction(&txid).await.unwrap();
|
||||
network.mine_block().await;
|
||||
let block_number = network.get_latest_block_number().await.unwrap();
|
||||
|
||||
Reference in New Issue
Block a user