Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add missing transaction type #3

Open
wants to merge 1 commit into
base: feat/v0.2.0
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/evm/contracts/adapters/Spectre/lib/Receipt.sol
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ library Receipt {
bytes memory value = MerklePatricia.VerifyEthereumProof(receiptsRoot, receiptProof, keys)[0].value;

// https://eips.ethereum.org/EIPS/eip-2718
// There are 3 possible receipt types: Legacy, 0x01 or 0x02 (More types can be added in future EIPs)
// There are 3 possible receipt types: Legacy, 0x01 or 0x02 or 0x03 (More types can be added in future EIPs)
uint256 offset;
if (value[0] == 0x01 || value[0] == 0x02) {
if (value[0] == 0x01 || value[0] == 0x02 || value[0] == 0x03) {
// first byte represents the TransactionType
offset = 1;
} else if (value[0] >= 0xc0) {
Expand Down