Skip to content

Commit

Permalink
fix: remove unused arg
Browse files Browse the repository at this point in the history
  • Loading branch information
martinconic committed Jul 5, 2024
1 parent d2d3744 commit 6872d37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/storageincentives/staking/contract.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit 6872d37

Please sign in to comment.