Unanswered Questions
42 questions with no upvoted or accepted answers
7
votes
0
answers
96
views
Why do clients have to hardcode the extra types in the registry?
Context: I'm experimenting with an H160-address based substrate and I'm doing it from scratch (it's not a moon* or frontier template fork).
It's reasonably trivial to make changes to the substrate ...
6
votes
0
answers
215
views
Subxt call to custom pallet method returning `wasm 'unreachable'` - (`TaggedTransactionQueue_validate_transaction`)
So I am trying to submit extrinsics to a running parachain node using subxt, but encounter a Codec error.
The parachain is based on the substrate-parachain-template, the relay chain is compiled ...
6
votes
0
answers
234
views
How to use the default Substrate CLI rpc-cors values without using rpc-cors=all for a Collator node and connect from Polkadot.js Apps
I want to be able to connect a collator node using https://polkadot.js.org/apps that is based on the substrate-parachain-template using branch 'polkadot-v0.9.18' and is being run as a parachain in ...
5
votes
0
answers
98
views
I want to use Parity SCALE codec in Solidity? Is there any implementation of scale codec to decode bytes?
I want to decode bytes on the Solidity side that was decoded with scale codec.
Is the any implementation of scale codec (decode) on the Solidity side?
4
votes
1
answer
146
views
Parathread not producing block on Rococo registered using CoreTime
I am trying to list a parathread on Rococo using core time. I have followed all instructions mentioned here. I followed below steps:
I registered a ParaId and onboarded Parathread as usual but didn't ...
3
votes
0
answers
39
views
Why is the index of a pallet a u32(usize) instead of u8 when queried?
I'm implementing a flow where I first ask what index a pallet has with the QueryPallet xcm instruction, and then construct a call to use with Transact.
I see that to construct manually an encoded call ...
3
votes
0
answers
53
views
After using set_code_hash to upgrade contract, when decode on the new Storage,why there wont has error of "Not enough data to fill buffer"
I'm learning how to upgrade ink! contract,and have some question:
Eg:old contractA, storage define is
#[ink(storage)
pub struct MyContract {
a: u32,
}
new contractB,storage define is
#[ink(...
3
votes
0
answers
37
views
the function or associated item `offchain_worker` exists for struct
i wanna add a new pallet in substrate runtime.rs
this is the contract of the file :
#![cfg_attr(not(feature = "std"), no_std)]
/// Edit this file to define custom logic or remove it if it ...
3
votes
0
answers
44
views
How to execute/apply extra logic when xcm call delivered and deposit is succeed? or register callback?
I want to execute extra logic when xcm call deliver and deposit succeed.
I can pass extra parameters in beneficiary MultiLocation with a description what todo next.
I have a MultiLocation
...
2
votes
0
answers
51
views
Parachain doesn't produce blocks(collation wasn't advertised to any validator)
I'm currently engaged with the Polkadot relay chain version 1.1.0, and I've encountered an issue in the parachain where block production is not occurring. My configuration involves two validators in ...
2
votes
0
answers
48
views
fill assetId in local substrate into dex pallet
I'm trying to create a decentralized exchange (dEX) in Substrate and I have a function called create_exchange that has two parameters: asset_id and liquidity_token_id. I'm having trouble filling the ...
2
votes
1
answer
62
views
Unable to open messaging channel in Substrate Tutorial
chain-spec.rs
In Open Message Passing Channels guide, use the parachain-template.js parachain_id of 1000, 1001 respectively.
Add sudo pallet to runtime/lib.js.
impl pallet_sudo::Config for Runtime {
...
1
vote
0
answers
33
views
DOT, KSM transfer sign payload order
I want to know the scale codec order for sign payload cause currently I can't transfer WND, KSM right now
currently my codec order is
method call -> era -> nonce -> tip -> specVer -> ...
1
vote
1
answer
30
views
How to run substrate-parachain-template as parachain testnet?
everyone.
Could you please help me on deploying my substrate-parachain-template as testnet?
https://docs.substrate.io/test/set-up-a-test-network/
I am following this reference. But I receive this ...
1
vote
0
answers
51
views
How to decode contract storage returned data
How do i decode this Hex string to String. It is storage data returned from a contract, using Polkadot-JS.
{
Ok: {
flags: [],
data: '...