Skip to main content

Questions tagged [custom-types]

The tag has no usage guidance.

5 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3 votes
0 answers

Custom typegen and using ApiPromise: Property 'unwrap' does not exist on type 'Codec'

It seems there is a mismatch between autocomplete suggestion return types from an ApiPromise instance and the actual returned type. I am using "@polkadot/api": "8.1.1". I am ...
Nepoche's user avatar
  • 83
1 vote
0 answers

Add custom type to the substrate-front-end-template

is it a new approach to add the custom types to the substrate-front-end-template ? the ones I found in past examples of Kitties seem don't work any more. I try adding them to the PolkadotJS and to the ...
M M's user avatar
  • 11
0 votes
0 answers

generate types from chain does not work. Documentation is not clear

I dont think typegen is working as expected per documentation, by following the provided example and adapting it to my parachain. ` Found 244 errors in 5 files. Errors Files 5 src/interfaces/augment-...
rvalle's user avatar
  • 45
0 votes
0 answers

Does Substrate support custom node specific environment vars or flags

I have a pallet that should have access to a secp256k1::Keypair for signing messages. And I want to be able to start the node with either the secret_key string or a path to a key-file. Then have the ...
ambiguous omen's user avatar
0 votes
0 answers

Polkadot Explorer: decode storage

I was doing some testing and sent a transaction on a custom substrate chain. On the polkadot explorer, the block which held the transaction had an error. The transaction completed; however, the ...
cboo's user avatar
  • 1