From c0996eb4286edb66fcf916b81668da1ad6f035aa Mon Sep 17 00:00:00 2001 From: vahoo5 Date: Tue, 6 Jun 2023 01:57:57 +0200 Subject: [PATCH] f --- internal/ethapi/api.go | 6 +++--- internal/ethapi/transaction_args.go | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/ethapi/api.go b/internal/ethapi/api.go index 3952cbf54b..cdace47ca3 100644 --- a/internal/ethapi/api.go +++ b/internal/ethapi/api.go @@ -1398,7 +1398,7 @@ func (s *BundleAPI) CallBundle(ctx context.Context, args CallBundleArgs, overrid ParentHash: parent.Hash(), Number: big.NewInt(int64(args.BlockNumbers[i])), GasLimit: gasLimit, - Time: args.Timestamps[i], + Time: *args.Timestamps[i], Difficulty: difficulty, Coinbase: coinbase, BaseFee: baseFee, @@ -1472,7 +1472,7 @@ func doCallBundle(ctx context.Context, b Backend, chain *core.BlockChain, args C } if len(args.Timestamps) != len(args.Transactions) { - return nil, errors.New("bundle txs and timestamps mismatch") + return nil, errors.New("bundle txs and timestamps mismatch, len1" + strconv.Itoa(len(args.Timestamps)) + " len2 " + strconv.Itoa(len(args.Transactions))) } defer func(start time.Time) { log.Debug("Executing EVM call finished", "runtime", time.Since(start)) }(time.Now()) @@ -1539,7 +1539,7 @@ func doCallBundle(ctx context.Context, b Backend, chain *core.BlockChain, args C ParentHash: parent.Hash(), Number: big.NewInt(int64(args.BlockNumbers[i])), GasLimit: gasLimit, - Time: args.Timestamps[i], + Time: *args.Timestamps[i], Difficulty: difficulty, Coinbase: coinbase, BaseFee: baseFee, diff --git a/internal/ethapi/transaction_args.go b/internal/ethapi/transaction_args.go index 5126874214..e2e3c23222 100644 --- a/internal/ethapi/transaction_args.go +++ b/internal/ethapi/transaction_args.go @@ -73,7 +73,7 @@ type MaxWalletSearchArgs struct { type CallBundleArgs struct { Transactions []TransactionArgs `json:"transactions"` BlockNumbers []rpc.BlockNumber `json:"blockNumbers"` - Timestamps []uint64 `json:"timestamps"` + Timestamps []*uint64 `json:"timestamps"` StateBlockNumberOrHash rpc.BlockNumberOrHash `json:"stateBlockNumber"` Coinbase *string `json:"coinbase"` Timeout *int64 `json:"timeout"`