Skip to content

Commit a389954

Browse files
committed
using U128 in creating series
1 parent b74c2f4 commit a389954

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

nft-series/src/series.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ impl Contract {
1313
id: u64,
1414
metadata: TokenMetadata,
1515
royalty: Option<HashMap<AccountId, u32>>,
16-
price: Option<NearToken>
16+
price: Option<U128>
1717
) {
1818
// Measure the initial storage being used on the contract
1919
let initial_storage_usage = env::storage_usage();
@@ -41,7 +41,7 @@ impl Contract {
4141
)),
4242
}),
4343
owner_id: caller,
44-
price: price.map(|p| p.into()),
44+
price: price.map(|p| NearToken::from_yoctonear(p.0)),
4545
}
4646
)
4747
.is_none(),

0 commit comments

Comments
 (0)