From b64010cef1b4e5fe4b85852c0615c8e70eb72612 Mon Sep 17 00:00:00 2001 From: Lei Date: Mon, 23 Oct 2023 12:27:29 -0700 Subject: [PATCH] cleanup the Fund function in consumer (#11045) --- .../contracts/ethereum_keeper_contracts.go | 33 ------------------- 1 file changed, 33 deletions(-) diff --git a/integration-tests/contracts/ethereum_keeper_contracts.go b/integration-tests/contracts/ethereum_keeper_contracts.go index d7c4e0fa1a3..5be147f2558 100644 --- a/integration-tests/contracts/ethereum_keeper_contracts.go +++ b/integration-tests/contracts/ethereum_keeper_contracts.go @@ -85,7 +85,6 @@ type KeeperRegistry interface { type KeeperConsumer interface { Address() string - Fund(ethAmount *big.Float) error Counter(ctx context.Context) (*big.Int, error) Start() error } @@ -1688,14 +1687,6 @@ func (v *EthereumKeeperConsumer) Address() string { return v.address.Hex() } -func (v *EthereumKeeperConsumer) Fund(ethAmount *big.Float) error { - gasEstimates, err := v.client.EstimateGas(geth.CallMsg{}) - if err != nil { - return err - } - return v.client.Fund(v.address.Hex(), ethAmount, gasEstimates) -} - func (v *EthereumKeeperConsumer) Counter(ctx context.Context) (*big.Int, error) { opts := &bind.CallOpts{ From: common.HexToAddress(v.client.GetDefaultWallet().Address()), @@ -1733,14 +1724,6 @@ func (v *EthereumAutomationStreamsLookupUpkeepConsumer) Start() error { return v.client.ProcessTransaction(tx) } -func (v *EthereumAutomationStreamsLookupUpkeepConsumer) Fund(ethAmount *big.Float) error { - gasEstimates, err := v.client.EstimateGas(geth.CallMsg{}) - if err != nil { - return err - } - return v.client.Fund(v.address.Hex(), ethAmount, gasEstimates) -} - func (v *EthereumAutomationStreamsLookupUpkeepConsumer) Counter(ctx context.Context) (*big.Int, error) { opts := &bind.CallOpts{ From: common.HexToAddress(v.client.GetDefaultWallet().Address()), @@ -1777,14 +1760,6 @@ func (v *EthereumAutomationLogTriggeredStreamsLookupUpkeepConsumer) Start() erro return v.client.ProcessTransaction(tx) } -func (v *EthereumAutomationLogTriggeredStreamsLookupUpkeepConsumer) Fund(ethAmount *big.Float) error { - gasEstimates, err := v.client.EstimateGas(geth.CallMsg{}) - if err != nil { - return err - } - return v.client.Fund(v.address.Hex(), ethAmount, gasEstimates) -} - func (v *EthereumAutomationLogTriggeredStreamsLookupUpkeepConsumer) Counter(ctx context.Context) (*big.Int, error) { opts := &bind.CallOpts{ From: common.HexToAddress(v.client.GetDefaultWallet().Address()), @@ -1820,14 +1795,6 @@ func (v *EthereumAutomationLogCounterConsumer) Start() error { return v.client.ProcessTransaction(tx) } -func (v *EthereumAutomationLogCounterConsumer) Fund(ethAmount *big.Float) error { - gasEstimates, err := v.client.EstimateGas(geth.CallMsg{}) - if err != nil { - return err - } - return v.client.Fund(v.address.Hex(), ethAmount, gasEstimates) -} - func (v *EthereumAutomationLogCounterConsumer) Counter(ctx context.Context) (*big.Int, error) { opts := &bind.CallOpts{ From: common.HexToAddress(v.client.GetDefaultWallet().Address()),