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

[R4R] update dependency and upgrade golang version #836

Merged
merged 2 commits into from
Jan 5, 2022

Conversation

forcodedancing
Copy link
Contributor

Description

This pr upgrades the dependencies of Tendermint and Cosmos-SDK; it also upgrades golang version to 1.16.

Rationale

To apply the new releases of BNC Tendermint and BNC Cosmos-SDK , which include some important fixes.

Example

n/a

Changes

  • changed go.mod to apply the upgrades
  • fix some test cases

@@ -115,7 +115,7 @@ func (msg MintMsg) ValidateBasic() sdk.Error {

// handler will check: msg.Amount + token.TotalSupply <= types.MaxTotalSupply
if msg.Amount <= 0 || msg.Amount > types.TokenMaxTotalSupply {
return sdk.ErrInvalidCoins("total supply should be less than or equal to " + string(types.TokenMaxTotalSupply))
return sdk.ErrInvalidCoins("total supply should be less than or equal to " + strconv.FormatInt(types.TokenMaxTotalSupply, 10))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why change this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

encounter error when run unit tests - "plugins/tokens/issue/msg.go:59:80: conversion from int64 to string yields a string of one rune, not a string of digits (did you mean fmt.Sprint(x)?)"

@forcodedancing forcodedancing merged commit 680333b into develop Jan 5, 2022
@unclezoro unclezoro deleted the upgrade_cosmos_sdk branch May 10, 2022 06:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants