chore(rpc): return error instead of panic (#1856)

This commit is contained in:
Matthias Seitz
2023-03-20 11:44:06 +01:00
committed by GitHub
parent 46a4d7ee2a
commit 1891e13d30

View File

@@ -70,7 +70,7 @@ where
BlockId::Number(BlockNumberOrTag::Pending) => {
// This should perhaps use the latest env settings and update block specific
// settings like basefee/number
unimplemented!("support pending state env")
Err(EthApiError::Unsupported("pending state not implemented yet"))
}
hash_or_num => {
let block_hash = self