We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a11cfbe + f838582 commit a618fb1Copy full SHA for a618fb1
crates/rpc/src/method/subscribe_transaction_status.rs
@@ -152,7 +152,7 @@ impl RpcSubscriptionFlow for SubscribeTransactionStatus {
152
let db = conn.transaction().map_err(RpcError::InternalError)?;
153
let first_block = db
154
.block_number(first_block.try_into().map_err(|_| {
155
- RpcError::InvalidParams("block cannot be pending".to_string())
+ RpcError::ApplicationError(ApplicationError::CallOnPending)
156
})?)
157
.map_err(RpcError::InternalError)?;
158
let l1_block_number =
0 commit comments