Questions tagged [u128]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
1 answer
47 views

benchmark: "let i in x...y" notation - How to set i as u128?

I'm trying to use the "let i in x..y" notation while benchmarking, and ran into a problem: the line let i in 10_000_000_000 .. 100_000_000_000 throw an error, as i is a u32, and my numbers ...
Nathan's user avatar
  • 464
3 votes
1 answer
120 views

u128 is not supported on jsonrpc

u128 is not supported on rpc. So I am trying to use NumberOrHex How to setup and RPC call that accepts a u128 input? Here is my code for runtime api: #![cfg_attr(not(feature = "std"), no_std)...
Amiya Behera's user avatar
8 votes
1 answer
146 views

How to setup and RPC call that accepts a u128 input?

I cannot seem to setup a RPC call that accepts a u128 param. I can input the following let u128Input = new BN("10") let output = await api.rpc.template.testRpc(u128Input); but get an error ...
drbh's user avatar
  • 83