Questions tagged [pallet]
Questions about Runtime Modules built with the FRAME developer SDK.
548 questions
1 vote
1 answer
48 views
Contract Failed with error the "initcode size of this transaction is too large: it is 104172 while the max is 49152"
Hi I'm deploying this contract on the remix.polkadot.io with this environment Platform: https://remix.polkadot.io/ Compiler: Solidity ^0.8.20 Libraries: OpenZeppelin ERC1155 + Ownable And it fails ...
0 votes
0 answers
21 views
ETH Fees Calculated Too Low with pallet-revive
I’m integrating the newly added pallet-revive into my chain. The chain is live and currently uses 18 decimals. I’ve already updated the NativeToEthRatio to 1 (previously it was 1_000_000 when the ...
0 votes
1 answer
85 views
Build fails with the error: The "wasm_js" backend requires the `wasm_js` feature for `getrandom`
So I'm trying to compile a custom HTLC pallet using a Substrate template node but it is failing with the following error message by running the following command: RUSTFLAGS='--cfg getrandom_backend=&...
0 votes
1 answer
30 views
How to make a parachain without a native token?
How can I make a substrate based parachain without having a native token and use custom assets from pallet assets to pay transaction fees?
0 votes
1 answer
23 views
How to integrate pallet_session properly
My problem now is that in my solochain no finalization finalized - 0 best - 1,379 Eventually I figured out that I have to install pallet_session first, and then finalization will work together with ...
0 votes
1 answer
24 views
Track finalized block inside Pallet
Is there a way to obtain the last finalized head of the chain directly from a given pallet?
0 votes
1 answer
19 views
MockBlockU32 vs MockBlock (u64), explain why use of u64?
In polkadot and substrate chains by default, blocks seem to be u32, but most test cases in pallets seem to use u64, but in the Runtime they use u32. For example, if you look up MockBlockU32 in the ...
0 votes
1 answer
40 views
How to check if runtime is constructed or not
Is there a way to check if the runtime is constructed? I want to configure my pallet differently if the runtime is constructed compared to when it's not yet. I've tried using something like this in my ...
0 votes
0 answers
45 views
Accessing pallet's runtime storage at genesis
I want to access one pallet's runtime storage from another pallet's Config at genesis. Is that possible to do? More context: I am using pallet_base_fee inside my runtime. It's configured like this: ...
1 vote
0 answers
28 views
Trouble Generating Ethereum Signatures for Substrate Claims Pallet
Generating Ethereum Signatures for Substrate Claims Pallet TLDR : Is there any opensource frontend implementation to sign message for claim pallet ? Context I am working on a custom pallet based on ...
0 votes
1 answer
17 views
All or nothing state updates on hooks
I have a hook that iterates through a collection and applies state updates for each item. Each state update contains multiple state updates -- storage updates, balance transfers, etc. I need to ensure ...
0 votes
1 answer
26 views
Best practices for implementing node communication and TSS in Polkadot
I'm working on implementing a threshold signature scheme (TSS) in a Polkadot-based project and have two related questions about the implementation approach: What is the recommended way to implement ...
0 votes
1 answer
23 views
Is it possible to override a pallet-staking unbond action?
The system I'm interested in building requires adding additional locks on top of a user's nominated balance. While this lock is active, I want to be extra sure that the user cannot unbond the amount ...
0 votes
1 answer
14 views
Are these conditional locks possible using Substrate?
I want to apply a lock to nominated stake that counts the nominated stake balance in other blockchain business logic, i.e. locking it up for another use case. I want to ensure that possessing this ...
0 votes
1 answer
41 views
How to use `chopsticks` to test a call with `StakingAdmin` origin
I am using chopsticks to test an extrinsic from pallet_nomination_pools: set_configs. This extrinsic requires an AdminOrigin, which in Polkadot's current runtime is either Root or StakingAdmin origin. ...