Skip to content

Commit

Permalink
resolve panic in masterchef claim rewards
Browse files Browse the repository at this point in the history
  • Loading branch information
jelysn committed May 1, 2024
1 parent 82fc66e commit 8c67305
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions x/masterchef/client/wasm/messenger.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
wasmbindingstypes "github.com/elys-network/elys/wasmbindings/types"
commitmentkeeper "github.com/elys-network/elys/x/commitment/keeper"
"github.com/elys-network/elys/x/masterchef/keeper"
masterchefkeeper "github.com/elys-network/elys/x/masterchef/keeper"
parameterkeeper "github.com/elys-network/elys/x/parameter/keeper"
)

Expand All @@ -16,7 +15,6 @@ type Messenger struct {
stakingKeeper *stakingkeeper.Keeper
commitmentKeeper *commitmentkeeper.Keeper
parameterKeeper *parameterkeeper.Keeper
masterchefKeeper *masterchefkeeper.Keeper
}

func NewMessenger(
Expand Down
2 changes: 1 addition & 1 deletion x/masterchef/client/wasm/msg_claim_rewards.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func (m *Messenger) msgClaimRewards(ctx sdk.Context, contractAddr sdk.AccAddress
return nil, nil, wasmvmtypes.InvalidRequest{Err: "wrong sender"}
}

res, err = performMsgClaimRewards(m.masterchefKeeper, ctx, contractAddr, msgClaimRewards)
res, err = performMsgClaimRewards(m.keeper, ctx, contractAddr, msgClaimRewards)
if err != nil {
return nil, nil, errorsmod.Wrap(err, "perform elys claim rewards")
}
Expand Down

0 comments on commit 8c67305

Please sign in to comment.