File tree Expand file tree Collapse file tree 2 files changed +1
-8
lines changed Expand file tree Collapse file tree 2 files changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ impl Bundle {
135
135
136
136
let mut tx = TxEip1559 {
137
137
chain_id,
138
- nonce : nonce ,
138
+ nonce,
139
139
max_priority_fee_per_gas,
140
140
max_fee_per_gas,
141
141
gas_limit,
Original file line number Diff line number Diff line change @@ -155,15 +155,8 @@ pub async fn yap(addresses: &[Address], tps: u32) -> Result<()> {
155
155
156
156
let mut acc =
157
157
ThresholdEncKeyCellAccumulator :: new ( c. clone ( ) , urls. iter ( ) . map ( |url| url. 2 . clone ( ) ) ) ;
158
- let rpc_url = "http://localhost:8547" ;
159
- let provider = RootProvider :: < Ethereum > :: connect ( rpc_url)
160
- . await
161
- . expect ( "to connect" ) ;
162
- let address = address ! ( "0x3f1Eae7D46d88F08fc2F8ed27FCb2AB183EB2d0E" ) ;
163
158
164
159
loop {
165
- let nonce = provider. get_transaction_count ( address) . await ?;
166
- println ! ( "Current nonce: {}" , nonce) ;
167
160
// create a bundle for next `interval.tick()`, then send this bundle to each node
168
161
let Ok ( b) = make_bundle ( acc. enc_key ( ) . await ) else {
169
162
warn ! ( "failed to generate bundle" ) ;
You can’t perform that action at this time.
0 commit comments