From 84ba6f91fe1f9332f81c91198dcfc66a5cc1948b Mon Sep 17 00:00:00 2001 From: Aaron Craelius Date: Tue, 19 Mar 2024 17:17:35 -0400 Subject: [PATCH] test fixes --- .../keeper/features/msg_bridge_receive.feature | 8 ++++---- .../base/keeper/msg_bridge_receive_test.go | 15 --------------- 2 files changed, 4 insertions(+), 19 deletions(-) diff --git a/x/ecocredit/base/keeper/features/msg_bridge_receive.feature b/x/ecocredit/base/keeper/features/msg_bridge_receive.feature index 4f7bc4f7d5..46c04d103c 100644 --- a/x/ecocredit/base/keeper/features/msg_bridge_receive.feature +++ b/x/ecocredit/base/keeper/features/msg_bridge_receive.feature @@ -49,8 +49,8 @@ Feature: Msg/BridgeReceive Given a credit type with abbreviation "C" And a credit class with id "C01" and issuer alice And allowed bridge chain "polygon" - And a project with id "C01-001" - And a credit batch with denom "C01-001-20200101-20210101-001" and issuer alice + And a project with id "P001" + And a credit batch with denom "C01-P001-20200101-20210101-001" and issuer alice And the batch contract """ { @@ -231,8 +231,8 @@ Feature: Msg/BridgeReceive Given a credit type with abbreviation "C" And a credit class with id "C01" and issuer alice And allowed bridge chain "polygon" - And a project with id "C01-001" - And a credit batch with denom "C01-001-20200101-20210101-001" and issuer alice + And a project with id "P001" + And a credit batch with denom "C01-P001-20200101-20210101-001" and issuer alice And the batch contract """ { diff --git a/x/ecocredit/base/keeper/msg_bridge_receive_test.go b/x/ecocredit/base/keeper/msg_bridge_receive_test.go index 3f75e02086..650c65695a 100644 --- a/x/ecocredit/base/keeper/msg_bridge_receive_test.go +++ b/x/ecocredit/base/keeper/msg_bridge_receive_test.go @@ -102,14 +102,6 @@ func (s *bridgeReceiveSuite) AProjectWithId(a string) { }) require.NoError(s.t, err) - seq := s.getProjectSequence(a) - - err = s.k.stateStore.ProjectSequenceTable().Insert(s.ctx, &api.ProjectSequence{ - ClassKey: s.classKey, - NextSequence: seq + 1, - }) - require.NoError(s.t, err) - s.projectKey = pKey } @@ -488,13 +480,6 @@ func (s *bridgeReceiveSuite) ExpectEventWithProperties(a gocuke.DocString) { require.NoError(s.t, err) } -func (s *bridgeReceiveSuite) getProjectSequence(projectID string) uint64 { - str := strings.Split(projectID, "-") - seq, err := strconv.ParseUint(str[1], 10, 32) - require.NoError(s.t, err) - return seq -} - func (s *bridgeReceiveSuite) getBatchSequence(batchDenom string) uint64 { str := strings.Split(batchDenom, "-") seq, err := strconv.ParseUint(str[4], 10, 32)