Skip to main content

Questions tagged [string]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
5 votes
1 answer

using String in ink version 4

so I am migrating my contract from version 3 to 4 my goal is to use the open brush as well but we can not use the open brush in ink version 4 because it still needs the nightly features and Ink v4 ...
Rahul navgire's user avatar
1 vote
1 answer

H256 to_string() function does not return complete string

I have a H256 value which is an extrinsic returned hash 0x8d19a2e575d583b8812418c71be304f16a978cfac2bfad54afcad824cb4d3471 but when i convert this to String using .to_string() it does not return ...
Rusty Pythonic Script's user avatar
0 votes
1 answer

How to Send Additional Text Payload to Contract?

I need to send a string of a digit and a letter like "2F" to a contract deployed on a running contracts node. This payload is to be processed in the contract then. How can I include ...
CREESTL's user avatar
  • 484
11 votes
2 answers

Store String in Subtrate by using Vec<u8>:

I want to store String value, some topics are using Vec, but I encounted this error: error[E0599]: no function or associated item named 'max_encoded_len' found for struct 'Vec<u8>' in the ...
Rong Nguyen's user avatar
2 votes
1 answer

How to convert Vec<u8> to u32 in Substrate runtime?

AFAIK, we can't use std in Substrate WASM runtime, what is the most effective way to convert a string to a number in runtime. For example: string "48" in Vec to 48 in u32.
lucycollins's user avatar