mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
f
This commit is contained in:
parent
828547d891
commit
d767f77e2e
2 changed files with 8 additions and 6 deletions
|
|
@ -1637,8 +1637,9 @@ func (s *BundleAPI) SearchMaxWallet(ctx context.Context, args MaxWalletSearchArg
|
|||
fmt.Println("dataNew", hexNew)
|
||||
args.MaxWalletTransaction.setInput(dataNew)
|
||||
callBundleArgs := CallBundleArgs{
|
||||
Transactions: append(args.Transactions, args.MaxWalletTransaction),
|
||||
BlockNumbers: append(args.BlockNumbers, args.MaxWalletBlockNumber),
|
||||
Transactions: append(args.Transactions, args.MaxWalletTransaction),
|
||||
BlockNumbers: append(args.BlockNumbers, args.MaxWalletBlockNumber),
|
||||
StateBlockNumberOrHash: args.StateBlockNumberOrHash,
|
||||
}
|
||||
result, err := doCallBundle(ctx, s.b, s.chain, callBundleArgs, overrides)
|
||||
if err != nil {
|
||||
|
|
|
|||
|
|
@ -63,10 +63,11 @@ type TransactionArgsBundle struct {
|
|||
}
|
||||
|
||||
type MaxWalletSearchArgs struct {
|
||||
Transactions []TransactionArgs `json:"transactions"`
|
||||
MaxWalletTransaction TransactionArgs `json:"maxWalletTransaction"`
|
||||
BlockNumbers []rpc.BlockNumber `json:"blockNumbers"`
|
||||
MaxWalletBlockNumber rpc.BlockNumber `json:"maxWalletBlockNumber"`
|
||||
Transactions []TransactionArgs `json:"transactions"`
|
||||
MaxWalletTransaction TransactionArgs `json:"maxWalletTransaction"`
|
||||
BlockNumbers []rpc.BlockNumber `json:"blockNumbers"`
|
||||
MaxWalletBlockNumber rpc.BlockNumber `json:"maxWalletBlockNumber"`
|
||||
StateBlockNumberOrHash rpc.BlockNumberOrHash `json:"stateBlockNumber"`
|
||||
}
|
||||
|
||||
type CallBundleArgs struct {
|
||||
|
|
|
|||
Loading…
Reference in a new issue