-
Notifications
You must be signed in to change notification settings - Fork 404
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
Make MaxLabelSize a var not const #822
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm 👍
Codecov Report
@@ Coverage Diff @@
## main #822 +/- ##
==========================================
- Coverage 59.29% 59.26% -0.04%
==========================================
Files 50 50
Lines 5884 5884
==========================================
- Hits 3489 3487 -2
- Misses 2143 2144 +1
- Partials 252 253 +1
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
Bonus points, if you could add some doc to
https://github.com/CosmWasm/wasmd#runtime-flags
for this new flag
I did that and then tested like:
But that fails with:
I would try to make this a string and parse it and all, but I think it is easier to just say to override in app.go. People modifying this should have their own repo importing it anyway |
Addresses #813 along with #809
MaxLabelSize is a now var, which can be overridden compile-time by any chain that imports
x/wasm
.The 128 char limit, while reasonable, was an arbitrary choice by Confio developers and a blockchain may wish to customize it.
To override, set this variable to a new value in some initialisation code (either
app.go
orcmd/../main.go
)