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

chore: remove MaxGas const #253

Merged
merged 4 commits into from
Jul 16, 2021
Merged

chore: remove MaxGas const #253

merged 4 commits into from
Jul 16, 2021

Conversation

loloicci
Copy link
Contributor

@loloicci loloicci commented Jun 22, 2021

Description

closes: #252

merge original #529 and part of #533


  • Targeted PR against correct branch (see CONTRIBUTING.md)
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
  • Code follows the module structure standards.
  • Wrote unit and integration tests (Not Needed)
  • Updated relevant documentation (docs/) or specification (x/<module>/spec/) (Not Needed)
  • Added relevant godoc comments. (Not Needed)
  • Added a relevant changelog entry to the Unreleased section in CHANGELOG.md
  • Re-reviewed Files changed in the Github PR explorer
  • Review Codecov Report in the comment section below once CI passes

@loloicci loloicci self-assigned this Jun 22, 2021
@loloicci loloicci force-pushed the loloicci/feat/remove-maxgas branch from 6351ea8 to 5c8e5fd Compare June 22, 2021 08:59
Copy link
Contributor

@whylee259 whylee259 left a comment

Choose a reason for hiding this comment

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

The PR adds unused consts and vars to alias.go.
Except this, LGTM.

@CLAassistant
Copy link

CLAassistant commented Jul 13, 2021

CLA assistant check
All committers have signed the CLA.

@loloicci loloicci force-pushed the loloicci/feat/remove-maxgas branch from 5c8e5fd to 177f0c9 Compare July 14, 2021 01:57
@loloicci
Copy link
Contributor Author

@whylee259 I changed the branch rebasing to. Sorry for using force push.

@@ -32,7 +32,7 @@ func TestOnOpenChannel(t *testing.T) {
},
"consume max gas": {
contractAddr: example.Contract,
contractGas: MaxGas,
contractGas: math.MaxUint64 / DefaultGasMultiplier,
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
contractGas: math.MaxUint64 / DefaultGasMultiplier,
contractGas: math.MaxUint64 / types.DefaultGasMultiplier,

and

math should be also imported.

@loloicci loloicci merged commit af78aa4 into main Jul 16, 2021
@loloicci loloicci deleted the loloicci/feat/remove-maxgas branch July 16, 2021 03:03
@loloicci loloicci restored the loloicci/feat/remove-maxgas branch July 16, 2021 03:03
@loloicci loloicci deleted the loloicci/feat/remove-maxgas branch July 16, 2021 03:03
@0Tech 0Tech added the C:WASM label Dec 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cherry-pick Cosmwasm/wasmd#529
6 participants