Skip to content

Commit

Permalink
fix: more descriptive carbon unit (#487)
Browse files Browse the repository at this point in the history
Co-authored-by: ryanchrypto <[email protected]>
  • Loading branch information
ryanchristo and ryanchristo authored Aug 19, 2021
1 parent 52edbd3 commit 82baa5b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions x/ecocredit/genesis_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func TestGenesisValidate(t *testing.T) {
CreditType: &ecocredit.CreditType{
Name: "carbon",
Abbreviation: "C",
Unit: "ton",
Unit: "metric ton CO2 equivalent",
Precision: 6,
},
},
Expand All @@ -72,7 +72,7 @@ func TestGenesisValidate(t *testing.T) {
CreditType: &ecocredit.CreditType{
Name: "carbon",
Abbreviation: "C",
Unit: "ton",
Unit: "metric ton CO2 equivalent",
Precision: 6,
},
},
Expand Down
2 changes: 1 addition & 1 deletion x/ecocredit/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ func DefaultParams() Params {
{
Name: "carbon",
Abbreviation: "C",
Unit: "ton",
Unit: "metric ton CO2 equivalent",
Precision: PRECISION,
},
},
Expand Down
2 changes: 1 addition & 1 deletion x/ecocredit/params_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ func TestDefaultParams(t *testing.T) {
{
Name: "carbon",
Abbreviation: "C",
Unit: "ton",
Unit: "metric ton CO2 equivalent",
Precision: PRECISION,
},
},
Expand Down
6 changes: 3 additions & 3 deletions x/ecocredit/server/testsuite/suite.go
Original file line number Diff line number Diff line change
Expand Up @@ -713,7 +713,7 @@ func (s *IntegrationTestSuite) TestScenario() {
{
name: "valid eco credit creation",
creditTypes: []*ecocredit.CreditType{
{Name: "carbon", Abbreviation: "C", Unit: "ton", Precision: 3},
{Name: "carbon", Abbreviation: "C", Unit: "metric ton CO2 equivalent", Precision: 3},
},
msg: ecocredit.MsgCreateClass{
Designer: s.signers[0].String(),
Expand All @@ -726,7 +726,7 @@ func (s *IntegrationTestSuite) TestScenario() {
{
name: "invalid request - not a valid credit type",
creditTypes: []*ecocredit.CreditType{
{Name: "carbon", Abbreviation: "C", Unit: "ton", Precision: 3},
{Name: "carbon", Abbreviation: "C", Unit: "metric ton CO2 equivalent", Precision: 3},
},
msg: ecocredit.MsgCreateClass{
Designer: s.signers[0].String(),
Expand All @@ -739,7 +739,7 @@ func (s *IntegrationTestSuite) TestScenario() {
{
name: "request with strange font should be valid",
creditTypes: []*ecocredit.CreditType{
{Name: "carbon", Abbreviation: "C", Unit: "ton", Precision: 3},
{Name: "carbon", Abbreviation: "C", Unit: "metric ton CO2 equivalent", Precision: 3},
},
msg: ecocredit.MsgCreateClass{
Designer: s.signers[0].String(),
Expand Down

0 comments on commit 82baa5b

Please sign in to comment.