You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For some RPC methods, like get_block_hash, get_block, and get_raw_transaction, it's often nice to handle the case where the requested item isn't found specially. I was able to do this, code reproduced below, but it's rather messy. It would be nice if such functions returned Option<T> instead of T, to avoid needing to write special-case code.
For some RPC methods, like
get_block_hash
,get_block
, andget_raw_transaction
, it's often nice to handle the case where the requested item isn't found specially. I was able to do this, code reproduced below, but it's rather messy. It would be nice if such functions returnedOption<T>
instead ofT
, to avoid needing to write special-case code.The text was updated successfully, but these errors were encountered: