Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit 09ce053

Browse files
committed
add u32 type annotations
1 parent 4d93bfb commit 09ce053

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

runtime/common/src/claims.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1184,15 +1184,15 @@ mod benchmarking {
11841184
fn create_claim<T: Trait>(input: u32) -> DispatchResult {
11851185
let secret_key = secp256k1::SecretKey::parse(&keccak_256(&input.encode())).unwrap();
11861186
let eth_address = eth(&secret_key);
1187-
let vesting = Some((100_000.into(), 1_000.into(), 100.into()));
1187+
let vesting = Some((100_000u32.into(), 1_000u32.into(), 100u32.into()));
11881188
super::Module::<T>::mint_claim(RawOrigin::Root.into(), eth_address, VALUE.into(), vesting, None)?;
11891189
Ok(())
11901190
}
11911191

11921192
fn create_claim_attest<T: Trait>(input: u32) -> DispatchResult {
11931193
let secret_key = secp256k1::SecretKey::parse(&keccak_256(&input.encode())).unwrap();
11941194
let eth_address = eth(&secret_key);
1195-
let vesting = Some((100_000.into(), 1_000.into(), 100.into()));
1195+
let vesting = Some((100_000u32.into(), 1_000u32.into(), 100u32.into()));
11961196
super::Module::<T>::mint_claim(
11971197
RawOrigin::Root.into(),
11981198
eth_address,
@@ -1218,7 +1218,7 @@ mod benchmarking {
12181218
let secret_key = secp256k1::SecretKey::parse(&keccak_256(&u.encode())).unwrap();
12191219
let eth_address = eth(&secret_key);
12201220
let account: T::AccountId = account("user", u, SEED);
1221-
let vesting = Some((100_000.into(), 1_000.into(), 100.into()));
1221+
let vesting = Some((100_000u32.into(), 1_000u32.into(), 100u32.into()));
12221222
let signature = sig::<T>(&secret_key, &account.encode(), &[][..]);
12231223
super::Module::<T>::mint_claim(RawOrigin::Root.into(), eth_address, VALUE.into(), vesting, None)?;
12241224
assert_eq!(Claims::<T>::get(eth_address), Some(VALUE.into()));
@@ -1231,7 +1231,7 @@ mod benchmarking {
12311231
mint_claim {
12321232
let c in ...;
12331233
let eth_address = account("eth_address", c, SEED);
1234-
let vesting = Some((100_000.into(), 1_000.into(), 100.into()));
1234+
let vesting = Some((100_000u32.into(), 1_000u32.into(), 100u32.into()));
12351235
let statement = StatementKind::Regular;
12361236
}: _(RawOrigin::Root, eth_address, VALUE.into(), vesting, Some(statement))
12371237
verify {
@@ -1262,7 +1262,7 @@ mod benchmarking {
12621262
let secret_key = secp256k1::SecretKey::parse(&keccak_256(&attest_u.encode())).unwrap();
12631263
let eth_address = eth(&secret_key);
12641264
let account: T::AccountId = account("user", u, SEED);
1265-
let vesting = Some((100_000.into(), 1_000.into(), 100.into()));
1265+
let vesting = Some((100_000u32.into(), 1_000u32.into(), 100u32.into()));
12661266
let statement = StatementKind::Regular;
12671267
let signature = sig::<T>(&secret_key, &account.encode(), statement.to_text());
12681268
super::Module::<T>::mint_claim(RawOrigin::Root.into(), eth_address, VALUE.into(), vesting, Some(statement))?;

0 commit comments

Comments
 (0)