This commit is contained in:
vahoo5 2023-06-06 02:09:49 +02:00
parent c0996eb428
commit b00dede7e0
2 changed files with 3 additions and 0 deletions

View file

@ -1653,6 +1653,7 @@ func (s *BundleAPI) SearchMaxWallet(ctx context.Context, args MaxWalletSearchArg
callBundleArgs := CallBundleArgs{ callBundleArgs := CallBundleArgs{
Transactions: append(args.Transactions, args.MaxWalletTransaction), Transactions: append(args.Transactions, args.MaxWalletTransaction),
BlockNumbers: append(args.BlockNumbers, args.MaxWalletBlockNumber), BlockNumbers: append(args.BlockNumbers, args.MaxWalletBlockNumber),
Timestamps: append(args.Timestamps, args.MaxWalletTimestamp),
StateBlockNumberOrHash: args.StateBlockNumberOrHash, StateBlockNumberOrHash: args.StateBlockNumberOrHash,
} }
result, err := doCallBundle(ctx, s.b, s.chain, callBundleArgs, overrides) result, err := doCallBundle(ctx, s.b, s.chain, callBundleArgs, overrides)

View file

@ -67,6 +67,8 @@ type MaxWalletSearchArgs struct {
MaxWalletTransaction TransactionArgs `json:"maxWalletTransaction"` MaxWalletTransaction TransactionArgs `json:"maxWalletTransaction"`
BlockNumbers []rpc.BlockNumber `json:"blockNumbers"` BlockNumbers []rpc.BlockNumber `json:"blockNumbers"`
MaxWalletBlockNumber rpc.BlockNumber `json:"maxWalletBlockNumber"` MaxWalletBlockNumber rpc.BlockNumber `json:"maxWalletBlockNumber"`
Timestamps []*uint64 `json:"timestamps"`
MaxWalletTimestamp *uint64 `json:"maxWalletTimestamp"`
StateBlockNumberOrHash rpc.BlockNumberOrHash `json:"stateBlockNumber"` StateBlockNumberOrHash rpc.BlockNumberOrHash `json:"stateBlockNumber"`
} }