mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
overried
This commit is contained in:
parent
e4417770f3
commit
26aab79e71
1 changed files with 5 additions and 1 deletions
|
|
@ -1322,7 +1322,7 @@ func (s *BlockChainAPI) BatchCall(ctx context.Context, args TransactionArgs2, bl
|
||||||
return result.Return(), result.Err
|
return result.Return(), result.Err
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *BundleAPI) CallBundle(ctx context.Context, args CallBundleArgs) (map[string]interface{}, error) {
|
func (s *BundleAPI) CallBundle(ctx context.Context, args CallBundleArgs, overrides *StateOverride) (map[string]interface{}, error) {
|
||||||
if len(args.Transactions) == 0 {
|
if len(args.Transactions) == 0 {
|
||||||
return nil, errors.New("bundle missing txs")
|
return nil, errors.New("bundle missing txs")
|
||||||
}
|
}
|
||||||
|
|
@ -1339,6 +1339,10 @@ func (s *BundleAPI) CallBundle(ctx context.Context, args CallBundleArgs) (map[st
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if err := overrides.Apply(state); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
|
||||||
timestamp := parent.Time + 1
|
timestamp := parent.Time + 1
|
||||||
if args.Timestamp != nil {
|
if args.Timestamp != nil {
|
||||||
timestamp = *args.Timestamp
|
timestamp = *args.Timestamp
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue