Skip to content

Commit

Permalink
fix typo variable
Browse files Browse the repository at this point in the history
  • Loading branch information
neitdung committed Jul 22, 2024
1 parent 0fa650a commit 5fc4e65
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions wasmbinding/message_plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,16 @@ type ProviderKeeper interface {
}

// CustomMessageDecorator returns decorator for custom CosmWasm bindings messages
func CustomMessageDecorator(consKeeper ConsumerKeeper, privKeeper ProviderKeeper) *CustomMessenger {
func CustomMessageDecorator(consKeeper ConsumerKeeper, provKeeper ProviderKeeper) *CustomMessenger {
return &CustomMessenger{
consKeeper: consKeeper,
privKeeper: privKeeper,
provKeeper: provKeeper,
}
}

type CustomMessenger struct {
consKeeper ConsumerKeeper
privKeeper ProviderKeeper
provKeeper ProviderKeeper
}

var _ wasmkeeper.Messenger = (*CustomMessenger)(nil)
Expand All @@ -54,10 +54,10 @@ func (h CustomMessenger) DispatchMsg(ctx sdk.Context, contractAddr sdk.AccAddres
}

if contractMsg.Deposit != nil {
return h.privKeeper.HandleDepositMsg(ctx, contractAddr, contractMsg.Deposit)
return h.provKeeper.HandleDepositMsg(ctx, contractAddr, contractMsg.Deposit)
}
if contractMsg.Withdraw != nil {
return h.privKeeper.HandleWithdrawMsg(ctx, contractAddr, contractMsg.Withdraw)
return h.provKeeper.HandleWithdrawMsg(ctx, contractAddr, contractMsg.Withdraw)
}
}
return nil, nil, wasmtypes.ErrUnknownMsg
Expand Down

0 comments on commit 5fc4e65

Please sign in to comment.