cargo update

Should fix the recent CI failures re: Ethereum as well.
This commit is contained in:
Luke Parker
2024-10-09 00:39:34 -04:00
parent 435f1d9ae1
commit 599b2dec8f
13 changed files with 426 additions and 355 deletions

View File

@@ -764,7 +764,7 @@ impl<D: Db> Network for Ethereum<D> {
completion.signature(),
),
};
tx.gas_limit = 1_000_000u64.into();
tx.gas_limit = 1_000_000u64;
tx.gas_price = 1_000_000_000u64.into();
let tx = ethereum_serai::crypto::deterministically_sign(&tx);
@@ -905,7 +905,7 @@ impl<D: Db> Network for Ethereum<D> {
chain_id: None,
nonce: 0,
gas_price: 1_000_000_000u128,
gas_limit: 200_000u128,
gas_limit: 200_000,
to: ethereum_serai::alloy::primitives::TxKind::Call(send_to.0.into()),
// 1 ETH
value,
@@ -924,7 +924,10 @@ impl<D: Db> Network for Ethereum<D> {
.unwrap();
let mut bytes = vec![];
tx.encode_with_signature_fields(&Signature::from(sig), &mut bytes);
tx.encode_with_signature_fields(
&Signature::from(sig).with_chain_id(self.provider.get_chain_id().await.unwrap()),
&mut bytes,
);
let pending_tx = self.provider.send_raw_transaction(&bytes).await.ok().unwrap();
// Mine an epoch containing this TX

View File

@@ -396,7 +396,7 @@ mod ethereum {
let deployer = Deployer::new(provider.clone()).await.unwrap().unwrap();
let mut tx = deployer.deploy_router(&key);
tx.gas_limit = 1_000_000u64.into();
tx.gas_limit = 1_000_000u64;
tx.gas_price = 1_000_000_000u64.into();
let tx = ethereum_serai::crypto::deterministically_sign(&tx);