From f1ce4962e83e830beb89c73f5d5796c4652605fb Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Thu, 9 Nov 2023 18:27:47 -0800 Subject: [PATCH] give some extra ETH --- web3_proxy_cli/tests/test_proxy.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/web3_proxy_cli/tests/test_proxy.rs b/web3_proxy_cli/tests/test_proxy.rs index 31a96a66..0e547197 100644 --- a/web3_proxy_cli/tests/test_proxy.rs +++ b/web3_proxy_cli/tests/test_proxy.rs @@ -196,23 +196,23 @@ async fn it_matches_anvil() { let gas_price: U256 = quorum_provider.request("eth_gasPrice", ()).await.unwrap(); - let tx = TypedTransaction::Eip1559(Eip1559TransactionRequest { + let fund_tx = TypedTransaction::Eip1559(Eip1559TransactionRequest { chain_id: Some(chain_id), to: Some(singleton_deploy_from.into()), gas: Some(21000.into()), - value: Some("24700000000000000".parse().unwrap()), + value: Some("1024700000000000000".parse().unwrap()), max_fee_per_gas: Some(gas_price * U256::from(2)), ..Default::default() }); - let sig = wallet.sign_transaction_sync(&tx).unwrap(); + let fund_sig = wallet.sign_transaction_sync(&fund_tx).unwrap(); - let raw_tx = tx.rlp_signed(&sig); + let fund_tx = fund_tx.rlp_signed(&fund_sig); // fund singleton deployer // TODO: send through the quorum provider. it should detect that its already confirmed let fund_tx_hash: H256 = proxy_provider - .request("eth_sendRawTransaction", [raw_tx]) + .request("eth_sendRawTransaction", [fund_tx]) .await .unwrap(); info!(%fund_tx_hash);