Skip to content

Commit

Permalink
Merge pull request #1 from ethersphere/master
Browse files Browse the repository at this point in the history
fix: rearrage stake api (#410)
  • Loading branch information
ferencsarai authored Aug 3, 2024
2 parents 4536c06 + 3dbde09 commit 3a88d2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/bee/api/stake.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func (s *StakingService) GetStakedAmount(ctx context.Context) (stakedAmount *big
// MigrateStake withdraws stake
func (s *StakingService) MigrateStake(ctx context.Context) (txHash string, err error) {
r := new(stakeWithdrawResponse)
err = s.client.requestJSON(ctx, http.MethodPost, "/stake/migrate", nil, r)
err = s.client.requestJSON(ctx, http.MethodDelete, "/stake", nil, r)
if err != nil {
return "", err
}
Expand Down

0 comments on commit 3a88d2a

Please sign in to comment.