File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
monad-rpc/src/handlers/eth Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -352,12 +352,13 @@ pub async fn monad_eth_sendRawTransactionSync<T: Triedb>(
352352 . filter ( |& t| t > 0 && t <= eth_send_raw_transaction_sync_max_timeout_ms)
353353 . unwrap_or ( eth_send_raw_transaction_sync_default_timeout_ms) ;
354354
355- let tx = validate_and_decode_tx ( & params. hex_tx . 0 , chain_id, allow_unprotected_txs) . map_err (
356- |e| match e. code {
357- -32603 => JsonRpcError :: tx_sync_unready ( ) ,
358- _ => e,
359- } ,
360- ) ?;
355+ let tx =
356+ validate_and_decode_tx ( & params. hex_tx . 0 , chain_id, allow_unprotected_txs) . map_err ( |e| {
357+ match e. code {
358+ -32603 => JsonRpcError :: tx_sync_unready ( ) ,
359+ _ => e,
360+ }
361+ } ) ?;
361362
362363 let tx_hash = * tx. tx_hash ( ) ;
363364 debug ! ( name = "sendRawTransactionSync" , txn_hash = ?tx_hash) ;
You can’t perform that action at this time.
0 commit comments