Giter Site home page Giter Site logo

Comments (10)

jacogr avatar jacogr commented on August 30, 2024 1

There could be an issue due to 2.3.1 (fixed in the 2.4.1 API release tomorrow) where in some cases the types (as originally specified) is not always applied when the specVersion changes, upgrades or historic query related. So the above error report could very well be a bug.

from substrate-docs.

jacogr avatar jacogr commented on August 30, 2024 1

No, not refering to your comment specifically, just mentioning that there could be reports due to a funny bug that was/is existing where it breaks on upgrade and is "magically" working after a refresh. (As mentioned, this is fixed in master and due for release on Mon). I def. saw some weird/unexplained reports over the last week all of a sudden.

As for versioning, 100% with you and understand our rationale for keeping it fixed. However if we do swap to MultiAddress for node-template (assuming that change does goes in), would actually love a bump to 2 (or something round like "10") since there may be some chaos that we can minimize on both this repo and elsewhere.

I also chatted to Shawn that I'm thinking of swapping the default to Address: 'AccountId' in the API since the vast majority follows that approach. (Generally follow Substrate node for defaults, but it is probably wise in this case not to)

from substrate-docs.

danforbes avatar danforbes commented on August 30, 2024 1

I think it's likely than any reports of unexpected behavior are related to the bug that Jaco is referring to. I definitely completed the steps in this tutorial multiple times in order to write it, so I'm certain that it worked up until very recently at least. I do think it would be a good idea to rewrite this tutorial on top of the Front-End Template, but it would require some changes to the way the Front-End Template handles sudo.uncheckedWeight, I think.

from substrate-docs.

danforbes avatar danforbes commented on August 30, 2024

I believe that Polkadot-JS Apps UI handles this automatically for the Node Template (ref: https://github.com/polkadot-js/apps/blob/master/packages/apps-config/src/api/spec/node-template.ts) @jacogr can you please confirm?

from substrate-docs.

jacogr avatar jacogr commented on August 30, 2024

The apps UI for the template (apart from some chains like Acala, Polkadot, Kusama) does not handle different specVersion types.

(The template does not actually have a specVersion)

from substrate-docs.

riusricardo avatar riusricardo commented on August 30, 2024

@danforbes I suggest to update this tutorial and use the front-end-template. As Jaco pointed out this is a case where even if Polkaddot JS Apps has a file to handle node-template types, it won't always works because it follows master.
The node-template spec version is always 0 1. We previously discussed this issue workaround and came to the conclusion that it was better to keep it this way because it's a template. This is the reason why you updated the tutorials to use the front-end template as it will be in sync with the latest DevHub's node-template.

@shawntabrizi suggestion could also work but there is a chance that it will fail after some time if there is a new type that the tutorial isn't contemplating for the latest API. We'll need to update the types once again (most probably after a user reports it) to keep it working with the latest version.

from substrate-docs.

riusricardo avatar riusricardo commented on August 30, 2024

@jacogr I'm not quite sure if you are referring to my point about specVersion is 0. That was my mistake, it is always 1. But my main point is to highlight what you said. That we aren't changing that number so Polkadot JS Apps can't identify the difference between node-templates.

from substrate-docs.

riusricardo avatar riusricardo commented on August 30, 2024

Yeah, I know that you tested it at the time of the release. But as I said, the JS API in Apps changes with master so it isn't stable to use it in the tutorials.
The front-end template already supports the sudo.sudoUncheckedWeight and the forkless upgrades. The tutorial could explain the different sudo types based in Polkadot JS API. By doing this they will get the idea for whenever they try to use it in Polkadot JS Apps and the front end template.

from substrate-docs.

nuke-web3 avatar nuke-web3 commented on August 30, 2024

If I understand correctly, paritytech/substrate#8615 changes the game here, so we can safely use the node template from this point on. It that includes scale-info to expose metadata with the apps UI (and soon to be updated FE template too). So we should support this with the next monthly release (monthly-2021-10)

from substrate-docs.

nuke-web3 avatar nuke-web3 commented on August 30, 2024

AFAIK this issue is no longer relevant, Please do reopen if incorrect!

from substrate-docs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.