Skip to content

Commit

Permalink
u128 tests fix
Browse files Browse the repository at this point in the history
  • Loading branch information
volovyks committed Aug 27, 2024
1 parent 26d2e0e commit e830dfb
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions chain-signatures/contract/tests/user_views.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,10 @@ async fn test_experimental_signature_deposit() -> anyhow::Result<()> {
.view("experimental_signature_deposit")
.await
.unwrap()
.json()
.unwrap();
assert_eq!(deposit, 1u128);
.json::<String>()
.unwrap()
.parse()?;
assert_eq!(deposit, 1);

let alice = worker.dev_create_account().await?;
let path = "test";
Expand Down Expand Up @@ -92,8 +93,9 @@ async fn test_experimental_signature_deposit() -> anyhow::Result<()> {
.view("experimental_signature_deposit")
.await
.unwrap()
.json()
.unwrap();
.json::<String>()
.unwrap()
.parse()?;
assert_eq!(deposit, NearToken::from_millinear(50).as_yoctonear());
Ok(())
}

0 comments on commit e830dfb

Please sign in to comment.