Skip to main content
2 votes

How to integrate pallet-asset?

I assume you have already set up the basic runtime. It could work independently. Refer to the official template node. It shows that pallet-asset doesn't depend on any other special pallets. https://...
AurevoirXavier's user avatar
  • 10.4k
1 vote
Accepted

Should I Copy or Fork the Substrate Node Template for My Node?

Fork the template. This should be good enough for you to start. In the future there will be the omni node which means that you will only need to have a runtime.
bkchr's user avatar
  • 11.3k
1 vote
Accepted

Substrate Tutorials - No more Nick's Pallet?

Current answer For those who are also stuck on the Build Application Logic tutorial, I found a workaround. There is an old repo that contains the pallet-nicks source code: Nicks pallet You can simply ...
pcfaktor's user avatar
1 vote

Substrate Tutorials - No more Nick's Pallet?

The nicks pallet still on crates.io, so you can still add it from there. But if you want some simple pallet to copy the source code into your project, then the best ones to use are: pallet-minimal-...
Oliver Tale-Yazdi's user avatar
1 vote
Accepted

Is there any way to constrain the max value of an integer?

Depending on where you want to use it, you can implement a custom decoder that rejects anything > 32. This would work when you want to use it as argument for an extrinsic, since the runtime has to ...
Oliver Tale-Yazdi's user avatar
1 vote

How to access functions of pallet-assets from custom pallet?

loosely couple Assets pallet with your custom pallet using fungibles::Unbalanced trait. Then, simply T::Assets::decrease_balance() inside your pallet.
dastansam's user avatar
  • 566
1 vote

the trait `Deserialize<'_>` is not implemented for `T`, which is required by `HackerNewsInfo<T>: Deserialize<'_>`

You should find another solution. For example, use Codec instead of JSON. https://github.com/XcavateBlockchain/Node_Hackathon_Apr2024/commit/ba0c46f36e83e5a143210014306fd2d721733375#diff-...
AurevoirXavier's user avatar
  • 10.4k
1 vote
Accepted

Trouble Registering Events in Substrate Tutorial's Frontend Transaction: Need Assistance

Open Transfer.js file go on line number 84, you will see something like this <TxButton label="Submit" type="SIGNED-TX" setStatus={...
Shivank Anchal's user avatar
1 vote

How to integrate Subxt with frontier?

subxt has added an example how to talk to it with frontier/moonbeam here
Niklas Adolfsson's user avatar
1 vote

Build Error with `tikv-jemalloc-sys v0.5.4+5.3.0-patched` in Substrate Node Template

I had the exact same issue Prefix should not contain spaces just now and I probably went through the same solutions that you have tried with nothing actually working. So you can see in this ...
Keea's user avatar
  • 11
1 vote
Accepted

problem with pallets bounties & treasury

I had something similar today: error[E0277]: the trait bound `pallet_treasury::Pallet<Runtime>: frame_support::traits::fungibles::Mutate<AccountId32>` is not satisfied | 60 | ...
Klapeyron's user avatar
  • 136

Only top scored, non community-wiki answers of a minimum length are eligible