-
Notifications
You must be signed in to change notification settings - Fork 4
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
As a member of a TC I can't provide liquidity for a whitelisted/non-whitelisted pair #415
Comments
When creating a pair, the The What I believe it's happening is the contracts does not support such long names, and from tgrade 0.6 (I think) the addresses are longer than before, so the pair creation works for I tried using only the last 8 characters from each address for the name: |
I also faced some issues with "label"-related errors. After creating a new token, the error "message index: 0: dispatch: submessages: label: is required: invalid request" is output when trying to provide liquidity to it. Checking the code base, "label" seems to be an (optional) parameter to store when creating a new instance of a contract. Not sure why it's failing with "required" now. @alpe, could this be related to a new Cosmos SDK version? |
@maurolacy that is the exact issue we describe here. It happens here: https://github.com/confio/tfi/blob/main/contracts/tfi-factory/src/contract.rs#L151#L156. I think this means label has a length limit we're exceeding. |
Yes, but that code isn't failing. That's where the label is created. The code fails later, when that message is dispatched. And I couldn't find where. |
Do you have a workaround for this from the frontend? Perhaps the asset info names are not being set properly? Or they can be shortened? |
I do have a workaround for creating them but it seems a lot of the T-Market code relies on those addresses to be full, so a lot of things start to fail. |
Contract addresses were increased to 32 bytes and therefore the bech32 representation (65 chars). Max label size in wasmd is 128 chars |
Gist
#415 (comment)
Description
I want to be able to create a permissionless token and then use to swap against a token linked to a Trusted Circle. When I do this in the application I get an error
label is required, invalid request
To create the sequence
The text was updated successfully, but these errors were encountered: