Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(ecocredit): remove unnecessary fields in events #1044

Merged
merged 16 commits into from
May 4, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge branch 'master' into ty/1035-events_cleanup
  • Loading branch information
technicallyty committed Apr 25, 2022
commit 5724c586e9bb79290677770d5749d8f7a8139059
4 changes: 1 addition & 3 deletions x/ecocredit/server/marketplace/sell.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ import (

"google.golang.org/protobuf/types/known/timestamppb"

"github.com/regen-network/regen-ledger/x/ecocredit/server/utils"

"github.com/cosmos/cosmos-sdk/orm/types/ormerrors"
sdk "github.com/cosmos/cosmos-sdk/types"
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
Expand Down Expand Up @@ -78,7 +76,7 @@ func (k Keeper) Sell(ctx context.Context, req *marketplace.MsgSell) (*marketplac
}

sellOrderIds[i] = id
if err = sdkCtx.EventManager().EmitTypedEvent(&marketplacev1.EventSell{
if err = sdkCtx.EventManager().EmitTypedEvent(&marketplace.EventSell{
Seller: req.Owner,
OrderId: id,
}); err != nil {
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.