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

feat(marketplace): cancel sell order #891

Merged
merged 20 commits into from
Mar 25, 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/880-cancel_sell_order
  • Loading branch information
technicallyty committed Mar 25, 2022
commit 96360b9b3d074cb086e05842a9616044b09bc870
2 changes: 2 additions & 0 deletions x/ecocredit/server/marketplace/sell_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import (
"github.com/regen-network/regen-ledger/x/ecocredit"
v1 "github.com/regen-network/regen-ledger/x/ecocredit/marketplace"
"github.com/regen-network/regen-ledger/x/ecocredit/server"
"github.com/regen-network/regen-ledger/x/ecocredit/server/core"
)

func TestSell_Valid(t *testing.T) {
Expand Down Expand Up @@ -193,6 +194,7 @@ func assertCoinsEscrowed(t *testing.T, balanceBefore, balanceAfter *ecocreditv1.
assert.Check(t, calculatedESupply.Equal(supAfterEscrowed))
}

// testSellSetup sets up a batch, class, market, and issues a balance of 100 retired and tradable to the base suite's addr.
func testSellSetup(t *testing.T, s *baseSuite, batchDenom, bankDenom, displayDenom, classId string, start, end *timestamppb.Timestamp, creditType ecocredit.CreditType) {
assert.NilError(t, s.coreStore.BatchInfoTable().Insert(s.ctx, &ecocreditv1.BatchInfo{
ProjectId: 1,
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.