From 6872d37fe0248129eb24a70255cd2e93b9faaf75 Mon Sep 17 00:00:00 2001 From: Calin Martinconi Date: Fri, 5 Jul 2024 14:33:14 +0300 Subject: [PATCH] fix: remove unused arg --- pkg/storageincentives/staking/contract.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/storageincentives/staking/contract.go b/pkg/storageincentives/staking/contract.go index 9bee2c5170d..f69b0e13e76 100644 --- a/pkg/storageincentives/staking/contract.go +++ b/pkg/storageincentives/staking/contract.go @@ -154,7 +154,7 @@ func (c *contract) sendTransaction(ctx context.Context, callData []byte, desc st return receipt, nil } -func (c *contract) sendDepositStakeTransaction(ctx context.Context, owner common.Address, stakedAmount *big.Int, nonce common.Hash) (*types.Receipt, error) { +func (c *contract) sendDepositStakeTransaction(ctx context.Context, stakedAmount *big.Int, nonce common.Hash) (*types.Receipt, error) { callData, err := c.stakingContractABI.Pack("manageStake", nonce, stakedAmount) if err != nil { return nil, err @@ -221,7 +221,7 @@ func (c *contract) DepositStake(ctx context.Context, stakedAmount *big.Int) (com return common.Hash{}, err } - receipt, err := c.sendDepositStakeTransaction(ctx, c.owner, stakedAmount, c.overlayNonce) + receipt, err := c.sendDepositStakeTransaction(ctx, stakedAmount, c.overlayNonce) if err != nil { return common.Hash{}, err }