|
|
@ -61,7 +61,6 @@ import ( |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
func testTransactionMarshal(t *testing.T, tests []txData, config *params.ChainConfig) { |
|
|
|
func testTransactionMarshal(t *testing.T, tests []txData, config *params.ChainConfig) { |
|
|
|
t.Parallel() |
|
|
|
|
|
|
|
var ( |
|
|
|
var ( |
|
|
|
signer = types.LatestSigner(config) |
|
|
|
signer = types.LatestSigner(config) |
|
|
|
key, _ = crypto.HexToECDSA("b71c71a67e1177ad4e901695e1b4b9ee17ae16c6668d313eac2f96dbcda3f291") |
|
|
|
key, _ = crypto.HexToECDSA("b71c71a67e1177ad4e901695e1b4b9ee17ae16c6668d313eac2f96dbcda3f291") |
|
|
@ -98,6 +97,8 @@ func testTransactionMarshal(t *testing.T, tests []txData, config *params.ChainCo |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func TestTransaction_RoundTripRpcJSON(t *testing.T) { |
|
|
|
func TestTransaction_RoundTripRpcJSON(t *testing.T) { |
|
|
|
|
|
|
|
t.Parallel() |
|
|
|
|
|
|
|
|
|
|
|
var ( |
|
|
|
var ( |
|
|
|
config = params.AllEthashProtocolChanges |
|
|
|
config = params.AllEthashProtocolChanges |
|
|
|
tests = allTransactionTypes(common.Address{0xde, 0xad}, config) |
|
|
|
tests = allTransactionTypes(common.Address{0xde, 0xad}, config) |
|
|
@ -106,6 +107,8 @@ func TestTransaction_RoundTripRpcJSON(t *testing.T) { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func TestTransactionBlobTx(t *testing.T) { |
|
|
|
func TestTransactionBlobTx(t *testing.T) { |
|
|
|
|
|
|
|
t.Parallel() |
|
|
|
|
|
|
|
|
|
|
|
config := *params.TestChainConfig |
|
|
|
config := *params.TestChainConfig |
|
|
|
config.ShanghaiTime = new(uint64) |
|
|
|
config.ShanghaiTime = new(uint64) |
|
|
|
config.CancunTime = new(uint64) |
|
|
|
config.CancunTime = new(uint64) |
|
|
@ -2460,6 +2463,8 @@ func TestFillBlobTransaction(t *testing.T) { |
|
|
|
} |
|
|
|
} |
|
|
|
for _, tc := range suite { |
|
|
|
for _, tc := range suite { |
|
|
|
t.Run(tc.name, func(t *testing.T) { |
|
|
|
t.Run(tc.name, func(t *testing.T) { |
|
|
|
|
|
|
|
t.Parallel() |
|
|
|
|
|
|
|
|
|
|
|
res, err := api.FillTransaction(context.Background(), tc.args) |
|
|
|
res, err := api.FillTransaction(context.Background(), tc.args) |
|
|
|
if len(tc.err) > 0 { |
|
|
|
if len(tc.err) > 0 { |
|
|
|
if err == nil { |
|
|
|
if err == nil { |
|
|
|