Skip to main content

Questions tagged [data-type]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
0 answers

How to check type info in substrate?

I want to debug and check if the variable has my expected type or not. So how do I debug and print out the type?
0 votes
1 answer

no `HashMap` in `collections` in Substrate

I can not use HashMap in scale_info packages, but when I search in Substrate docs we can use HashMap ...
2 votes
1 answer

How to change Balance type from u128 type to U256 in runtime?

In substrate runtime and in many frame pallets the type Balance/BalanceOf uses u128 type everywhere. How to change that type to U256 from primitive-types crate in runtime and all frame pallets and ...
0 votes
1 answer

What is the best practice for storing a hash?

I am about to make the decision on how to store some hash value inside the blockchain. A hash value is the best practice to minimise the size of the blockchain, but still allows people to verify ...
4 votes
1 answer

How to pass an AccountId to a parameter of type <T::Lookup as StaticLookup>::Source?

I am using pallet_assets for creating custom assets and I want to call the transfer function from pallet_assets in my other custom pallet. The thing is I want to pass the AccountId of the recipient ...
5 votes
1 answer

How to I submit UTF-8 text to an extrinsic?

I'm making a pallet that takes a string as the input. I tested it and it works well with English words, but when I try Vietnamese, the input box turned red and I couldn't submit the extrinsic. How can ...