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

🔧 bsx/snek balance issue #4945

Merged
merged 5 commits into from
Feb 9, 2023
Merged

🔧 bsx/snek balance issue #4945

merged 5 commits into from
Feb 9, 2023

Conversation

roiLeo
Copy link
Contributor

@roiLeo roiLeo commented Feb 8, 2023

PR Type

  • Bugfix

Context

Before submitting pull request, please make sure:

  • My contribution builds clean without any errors or warnings
  • I've merged recent default branch -- main and I've no conflicts
  • I've tried to respect high code quality standards
  • I've didn't break any original functionality
  • I've posted a screenshot of demonstrated change in this PR

Had issue bounty label?

  • Fill up your KSM address: Payout

Screenshot 📸

Screenshot 2023-02-08 at 13-17-21 KodaDot Low fees and low carbon minting KodaDot - NFT Market Explorer

@roiLeo roiLeo requested a review from a team as a code owner February 8, 2023 12:19
@roiLeo roiLeo requested review from preschian and vikiival and removed request for a team February 8, 2023 12:19
@netlify
Copy link

netlify bot commented Feb 8, 2023

Deploy Preview for koda-nuxt ready!

Name Link
🔨 Latest commit 985d5ae
🔍 Latest deploy log https://app.netlify.com/sites/koda-nuxt/deploys/63e56bef51c72300089c7c9f
😎 Deploy Preview https://deploy-preview-4945--koda-nuxt.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

store/identity.ts Outdated Show resolved Hide resolved
@roiLeo roiLeo requested a review from Jarsen136 February 8, 2023 12:21
@roiLeo
Copy link
Contributor Author

roiLeo commented Feb 8, 2023

@vikiival could you explain this change b4a6274 ? Why it's not working as excepted and where can I find related doc? (nvm pallet doc)

edit: now fixed KSM => Kusama

@Jarsen136
Copy link
Contributor

It seems does not work for me on bsx.

Here is the preview env: https://deploy-preview-4945--koda-nuxt.netlify.app/bsx/create
The balance shows zero.
image

What's more, it works well on beta env. https://beta.kodadot.xyz/bsx/create

image

@roiLeo
Copy link
Contributor Author

roiLeo commented Feb 8, 2023

It seems does not work for me on bsx.

thank you for your review it helped me to understand what was wrong.

New pallet (Rococo) asset is Kusama while it's currently (mainnet) KSM we will have to make the change when switching
#4941 is blocking me since I can't test some /snek features so I'll probably base it on the prefix

@roiLeo
Copy link
Contributor Author

roiLeo commented Feb 8, 2023

made a change that will check pallet version
BSX (mainnet) => 82
BSX (snek Rococo) => 88

lmk if there is another option

Copy link
Contributor

@Jarsen136 Jarsen136 left a comment

Choose a reason for hiding this comment

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

WFM

@vikiival
Copy link
Member

vikiival commented Feb 9, 2023

@vikiival could you explain this

Yeah I was having the same trouble that rococo calls it differently

Apart from that:
Let this roll

Side note:
These data can be fetched from Squid

@vikiival
Copy link
Member

vikiival commented Feb 9, 2023

Btw wasn't the id issue fixed by checking if KSM returns null?

@roiLeo
Copy link
Contributor Author

roiLeo commented Feb 9, 2023

Yeah I was having the same trouble that rococo calls it differently

Any way to know when bsx team make breaking changes?

Side note: These data can be fetched from Squid

where? assetEntities?

Btw wasn't the id issue fixed by checking if KSM returns null?

Since it didn't work on beta I don't think so.

@vikiival
Copy link
Member

vikiival commented Feb 9, 2023

where? assetEntities?

Yes can write resolver for that:

@vikiival
Copy link
Member

vikiival commented Feb 9, 2023

Nah YOLO

@codeclimate
Copy link

codeclimate bot commented Feb 9, 2023

Code Climate has analyzed commit 985d5ae and detected 0 issues on this pull request.

View more on Code Climate.

@vikiival vikiival merged commit 4ca7282 into kodadot:main Feb 9, 2023
@yangwao yangwao mentioned this pull request Feb 11, 2023
@roiLeo roiLeo mentioned this pull request Feb 14, 2023
9 tasks
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.

Balance issue on mint & buy (only snek)
3 participants