Commit 344ba3f5 authored by Chen Kai's avatar Chen Kai Committed by GitHub

fix:fix wrong hex test data (#8648)

* fix:fix wrong hex test data
Signed-off-by: default avatarChen Kai <281165273grape@gmail.com>

* fix:code review fix
Signed-off-by: default avatarChen Kai <281165273grape@gmail.com>

---------
Signed-off-by: default avatarChen Kai <281165273grape@gmail.com>
parent b7325840
......@@ -260,11 +260,11 @@ func createPayloadWithWithdrawals(w *types.Withdrawals) *ExecutionPayload {
GasLimit: Uint64Quantity(333),
GasUsed: Uint64Quantity(444),
Timestamp: Uint64Quantity(555),
ExtraData: common.Hex2Bytes("0x666"),
ExtraData: common.Hex2Bytes("6666"),
BaseFeePerGas: *uint256.NewInt(777),
BlockHash: common.HexToHash("0x888"),
Withdrawals: w,
Transactions: []Data{common.Hex2Bytes("0x999")},
Transactions: []Data{common.Hex2Bytes("9999")},
}
}
......
......@@ -356,7 +356,7 @@ func TestVerifyReceipts(t *testing.T) {
Type: 2,
Status: 0,
CumulativeGasUsed: 0x3035b,
Bloom: types.BytesToBloom(common.Hex2Bytes("0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000")),
Bloom: types.BytesToBloom(common.Hex2Bytes("00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000")),
Logs: nil,
TxHash: txHashes[0],
GasUsed: 0x3035b,
......@@ -369,7 +369,7 @@ func TestVerifyReceipts(t *testing.T) {
Type: 2,
Status: 1,
CumulativeGasUsed: 0xa9ae4,
Bloom: types.BytesToBloom(common.Hex2Bytes("0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000")),
Bloom: types.BytesToBloom(common.Hex2Bytes("00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000")),
Logs: nil,
TxHash: txHashes[1],
GasUsed: 0x79789,
......@@ -382,7 +382,7 @@ func TestVerifyReceipts(t *testing.T) {
Type: 0,
Status: 1,
CumulativeGasUsed: 0x101f09,
Bloom: types.BytesToBloom(common.Hex2Bytes("0x00000000000000000000000000000200000400000000000000000000000000800000000000040000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002002000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000800000000000000000000000000000000000000000000000000000400000000000000020000000000000000000000000002000000000000000000000000000000000000000000")),
Bloom: types.BytesToBloom(common.Hex2Bytes("00000000000000000000000000000200000400000000000000000000000000800000000000040000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002002000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000800000000000000000000000000000000000000000000000000000400000000000000020000000000000000000000000002000000000000000000000000000000000000000000")),
Logs: []*types.Log{
{
Address: common.HexToAddress("0x759c5e44a9e4be8b7e9bd25a790ceb662c924c45"),
......@@ -391,7 +391,7 @@ func TestVerifyReceipts(t *testing.T) {
common.HexToHash("0x0000000000000000000000000000000000000000000000000000000000426a80"),
common.HexToHash("0x000000000000000000000000a6275ee214f80a532c3abee0a4cbbc2d1dc22a72"),
},
Data: common.Hex2Bytes("0x00000000000000000000000000000000000000000000000000000000000005dc"),
Data: common.Hex2Bytes("00000000000000000000000000000000000000000000000000000000000005dc"),
BlockNumber: block.Number,
TxHash: txHashes[2],
TxIndex: 2,
......@@ -411,7 +411,7 @@ func TestVerifyReceipts(t *testing.T) {
Type: 0,
Status: 1,
CumulativeGasUsed: 0x1227ab,
Bloom: types.BytesToBloom(common.Hex2Bytes("0x00000000000000000000000000000200000400000000000000000000000000800000000000040000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002002000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000800000000000000000000000000000000000000000000000000000400000000000000020000000000000000000000000002000000000000000000000000000000000000000000")),
Bloom: types.BytesToBloom(common.Hex2Bytes("00000000000000000000000000000200000400000000000000000000000000800000000000040000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002002000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000800000000000000000000000000000000000000000000000000000400000000000000020000000000000000000000000002000000000000000000000000000000000000000000")),
Logs: []*types.Log{
{
Address: common.HexToAddress("0x759c5e44a9e4be8b7e9bd25a790ceb662c924c45"),
......@@ -420,7 +420,7 @@ func TestVerifyReceipts(t *testing.T) {
common.HexToHash("0x0000000000000000000000000000000000000000000000000000000000426a80"),
common.HexToHash("0x000000000000000000000000a6275ee214f80a532c3abee0a4cbbc2d1dc22a72"),
},
Data: common.Hex2Bytes("0x00000000000000000000000000000000000000000000000000000000000005dc"),
Data: common.Hex2Bytes("00000000000000000000000000000000000000000000000000000000000005dc"),
BlockNumber: block.Number,
TxHash: txHashes[3],
TxIndex: 3,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment