dockertest 0.5, correct errors from prior update commit

This commit is contained in:
Luke Parker
2024-09-05 23:31:45 -04:00
parent 0d5756ffcf
commit c1a9256cc5
15 changed files with 67 additions and 49 deletions

View File

@@ -48,6 +48,6 @@ tokio = { version = "1", features = ["time"] }
processor = { package = "serai-processor", path = "../../processor", features = ["bitcoin", "ethereum", "monero"] }
dockertest = "0.4"
dockertest = "0.5"
serai-docker-tests = { path = "../docker" }
serai-message-queue-tests = { path = "../message-queue" }

View File

@@ -378,8 +378,7 @@ impl Coordinator {
.unwrap()
.unwrap()
.header
.number
.unwrap();
.number;
// We mine 96 blocks to mine one epoch, then cause its finalization
provider.raw_request::<_, ()>("anvil_mine".into(), [96]).await.unwrap();
let end_of_epoch = start + 31;
@@ -389,8 +388,7 @@ impl Coordinator {
.unwrap()
.unwrap()
.header
.hash
.unwrap();
.hash;
let state = provider
.raw_request::<_, String>("anvil_dumpState".into(), ())

View File

@@ -305,7 +305,7 @@ impl Wallet {
use std::sync::Arc;
use ethereum_serai::{
alloy::{
primitives::{U256, TxKind},
primitives::{U256, Signature, TxKind},
sol_types::SolCall,
simple_request_transport::SimpleRequest,
consensus::{TxLegacy, SignableTransaction},
@@ -355,7 +355,7 @@ impl Wallet {
.unwrap();
let mut bytes = vec![];
tx.encode_with_signature_fields(&sig, &mut bytes);
tx.encode_with_signature_fields(&Signature::from(sig), &mut bytes);
let _ = provider.send_raw_transaction(&bytes).await.unwrap();
provider.raw_request::<_, ()>("anvil_mine".into(), [96]).await.unwrap();
@@ -395,7 +395,7 @@ impl Wallet {
.unwrap();
let mut bytes = vec![];
tx.encode_with_signature_fields(&sig.into(), &mut bytes);
tx.encode_with_signature_fields(&Signature::from(sig), &mut bytes);
// We drop the bottom 10 decimals
(