mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
fix existing tests
This commit is contained in:
parent
e469b41a45
commit
26776a9336
1 changed files with 20 additions and 14 deletions
|
|
@ -989,10 +989,12 @@ func TestSignTransaction(t *testing.T) {
|
||||||
b.SetPoS()
|
b.SetPoS()
|
||||||
})
|
})
|
||||||
api := NewTransactionAPI(b, nil)
|
api := NewTransactionAPI(b, nil)
|
||||||
res, err := api.FillTransaction(context.Background(), TransactionArgs{
|
res, err := api.FillTransaction(context.Background(), BlobTransactionArgs{
|
||||||
From: &b.acc.Address,
|
TransactionArgs: TransactionArgs{
|
||||||
To: &to,
|
From: &b.acc.Address,
|
||||||
Value: (*hexutil.Big)(big.NewInt(1)),
|
To: &to,
|
||||||
|
Value: (*hexutil.Big)(big.NewInt(1)),
|
||||||
|
},
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatalf("failed to fill tx defaults: %v\n", err)
|
t.Fatalf("failed to fill tx defaults: %v\n", err)
|
||||||
|
|
@ -1027,11 +1029,13 @@ func TestSignBlobTransaction(t *testing.T) {
|
||||||
b.SetPoS()
|
b.SetPoS()
|
||||||
})
|
})
|
||||||
api := NewTransactionAPI(b, nil)
|
api := NewTransactionAPI(b, nil)
|
||||||
res, err := api.FillTransaction(context.Background(), TransactionArgs{
|
res, err := api.FillTransaction(context.Background(), BlobTransactionArgs{
|
||||||
From: &b.acc.Address,
|
TransactionArgs: TransactionArgs{
|
||||||
To: &to,
|
From: &b.acc.Address,
|
||||||
Value: (*hexutil.Big)(big.NewInt(1)),
|
To: &to,
|
||||||
BlobHashes: []common.Hash{{0x01, 0x22}},
|
Value: (*hexutil.Big)(big.NewInt(1)),
|
||||||
|
BlobHashes: []common.Hash{{0x01, 0x22}},
|
||||||
|
},
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatalf("failed to fill tx defaults: %v\n", err)
|
t.Fatalf("failed to fill tx defaults: %v\n", err)
|
||||||
|
|
@ -1061,11 +1065,13 @@ func TestSendBlobTransaction(t *testing.T) {
|
||||||
b.SetPoS()
|
b.SetPoS()
|
||||||
})
|
})
|
||||||
api := NewTransactionAPI(b, nil)
|
api := NewTransactionAPI(b, nil)
|
||||||
res, err := api.FillTransaction(context.Background(), TransactionArgs{
|
res, err := api.FillTransaction(context.Background(), BlobTransactionArgs{
|
||||||
From: &b.acc.Address,
|
TransactionArgs: TransactionArgs{
|
||||||
To: &to,
|
From: &b.acc.Address,
|
||||||
Value: (*hexutil.Big)(big.NewInt(1)),
|
To: &to,
|
||||||
BlobHashes: []common.Hash{common.Hash{0x01, 0x22}},
|
Value: (*hexutil.Big)(big.NewInt(1)),
|
||||||
|
BlobHashes: []common.Hash{common.Hash{0x01, 0x22}},
|
||||||
|
},
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatalf("failed to fill tx defaults: %v\n", err)
|
t.Fatalf("failed to fill tx defaults: %v\n", err)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue