Skip to content

Commit

Permalink
Fallback to GW for 0.12.3 blocks as well (#1603)
Browse files Browse the repository at this point in the history
  • Loading branch information
omerfirmak authored and wojciechos committed Dec 27, 2023
1 parent c248307 commit ffccc42
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion rpc/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -1519,7 +1519,7 @@ func (h *Handler) LegacyTraceBlockTransactions(ctx context.Context, id BlockID)
return h.traceBlockTransactions(ctx, block, true)
}

var traceFallbackVersion = semver.MustParse("0.12.2")
var traceFallbackVersion = semver.MustParse("0.12.3")

func prependBlockHashToState(bc blockchain.Reader, blockNumber uint64, state core.StateReader) (core.StateReader, error) {
stateDiffWithBlockHash, err := blockchain.MakeStateDiffForEmptyBlock(bc, blockNumber)
Expand Down
8 changes: 4 additions & 4 deletions rpc/handlers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3153,7 +3153,7 @@ func TestTraceTransaction(t *testing.T) {
ParentHash: utils.HexToFelt(t, "0x0"),
Number: 0,
SequencerAddress: utils.HexToFelt(t, "0X111"),
ProtocolVersion: "0.12.3",
ProtocolVersion: "99.12.3",
}
block := &core.Block{
Header: header,
Expand Down Expand Up @@ -3270,7 +3270,7 @@ func TestTraceBlockTransactions(t *testing.T) {
ParentHash: utils.HexToFelt(t, "0x0C3"),
Number: 0,
GasPrice: utils.HexToFelt(t, "0x777"),
ProtocolVersion: "0.12.3",
ProtocolVersion: "99.12.3",
}
l1Tx := &core.L1HandlerTransaction{
TransactionHash: utils.HexToFelt(t, "0x000000C"),
Expand Down Expand Up @@ -3325,7 +3325,7 @@ func TestTraceBlockTransactions(t *testing.T) {
Number: 0,
SequencerAddress: utils.HexToFelt(t, "0X111"),
GasPrice: utils.HexToFelt(t, "0x777"),
ProtocolVersion: "0.12.3",
ProtocolVersion: "99.12.3",
}
block := &core.Block{
Header: header,
Expand Down Expand Up @@ -3649,7 +3649,7 @@ func TestThrottledVMError(t *testing.T) {
ParentHash: utils.HexToFelt(t, "0x0C3"),
Number: 0,
GasPrice: utils.HexToFelt(t, "0x777"),
ProtocolVersion: "0.12.3",
ProtocolVersion: "99.12.3",
}
l1Tx := &core.L1HandlerTransaction{
TransactionHash: utils.HexToFelt(t, "0x000000C"),
Expand Down

0 comments on commit ffccc42

Please sign in to comment.