Skip to content

Commit

Permalink
using U128 in creating series
Browse files Browse the repository at this point in the history
  • Loading branch information
garikbesson committed Apr 29, 2024
1 parent b74c2f4 commit a389954
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nft-series/src/series.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ impl Contract {
id: u64,
metadata: TokenMetadata,
royalty: Option<HashMap<AccountId, u32>>,
price: Option<NearToken>
price: Option<U128>
) {
// Measure the initial storage being used on the contract
let initial_storage_usage = env::storage_usage();
Expand Down Expand Up @@ -41,7 +41,7 @@ impl Contract {
)),
}),
owner_id: caller,
price: price.map(|p| p.into()),
price: price.map(|p| NearToken::from_yoctonear(p.0)),
}
)
.is_none(),
Expand Down

0 comments on commit a389954

Please sign in to comment.