chain: Chain has been added as a parameter to get_block_spec, calculate_receipt_root. Although the parameter might be unused for now, it will be used soon once we support other chains (e.g. Optimism Mainnet, Ethereum Sepolia).
2. Extract fn encode_receipt_2718
Another notable change of this PR is to extract encode_receipt_2718 to a standalone function. By doing so, we can support other chains conveniently:
One step towards https://github.com/risechain/pevm/issues/60
1. Adding parameter
chain: Chain
chain: Chain
has been added as a parameter toget_block_spec
,calculate_receipt_root
. Although the parameter might be unused for now, it will be used soon once we support other chains (e.g. Optimism Mainnet, Ethereum Sepolia).2. Extract fn
encode_receipt_2718
Another notable change of this PR is to extract
encode_receipt_2718
to a standalone function. By doing so, we can support other chains conveniently: