Skip to content

Commit a329353

Browse files
committed
chore: fmt
1 parent c79ab58 commit a329353

File tree

3 files changed

+6
-13
lines changed

3 files changed

+6
-13
lines changed

crates/rpc/src/executor.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ pub(crate) fn map_broadcasted_transaction(
4444
chain_id: ChainId,
4545
skip_validate: bool,
4646
skip_fee_charge: bool,
47-
skip_nonce_check: bool
47+
skip_nonce_check: bool,
4848
) -> anyhow::Result<pathfinder_executor::Transaction> {
4949
use crate::types::request::BroadcastedDeclareTransaction;
5050

@@ -178,7 +178,7 @@ pub(crate) fn map_broadcasted_transaction(
178178
only_query: has_query_version,
179179
validate: !skip_validate,
180180
charge_fee: !skip_fee_charge,
181-
nonce_check: !skip_nonce_check
181+
nonce_check: !skip_nonce_check,
182182
};
183183

184184
let transaction = transaction.clone().into_common(chain_id);

crates/rpc/src/method/estimate_fee.rs

+3-10
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ pub async fn estimate_fee(context: RpcContext, input: Input) -> Result<Output, E
100100
context.chain_id,
101101
skip_validate,
102102
true,
103-
true
103+
true,
104104
)
105105
})
106106
.collect::<Result<Vec<_>, _>>()?;
@@ -1139,15 +1139,9 @@ mod tests {
11391139
transaction_nonce!("0x1"),
11401140
call_param!("7"),
11411141
);
1142-
11431142

11441143
let input = Input {
1145-
request: vec![
1146-
declare_transaction,
1147-
deploy_transaction,
1148-
invoke_transaction,
1149-
1150-
],
1144+
request: vec![declare_transaction, deploy_transaction, invoke_transaction],
11511145
simulation_flags: vec![SimulationFlag::SkipValidate],
11521146
block_id: BlockId::Number(last_block_header.number),
11531147
};
@@ -1233,5 +1227,4 @@ mod tests {
12331227
])
12341228
);
12351229
}
1236-
1237-
}
1230+
}

crates/rpc/src/method/simulate_transactions.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ pub async fn simulate_transactions(
9696
context.chain_id,
9797
skip_validate,
9898
skip_fee_charge,
99-
false
99+
false,
100100
)
101101
})
102102
.collect::<Result<Vec<_>, _>>()?;

0 commit comments

Comments
 (0)