We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b74c2f4 commit a389954Copy full SHA for a389954
1 file changed
nft-series/src/series.rs
@@ -13,7 +13,7 @@ impl Contract {
13
id: u64,
14
metadata: TokenMetadata,
15
royalty: Option<HashMap<AccountId, u32>>,
16
- price: Option<NearToken>
+ price: Option<U128>
17
) {
18
// Measure the initial storage being used on the contract
19
let initial_storage_usage = env::storage_usage();
@@ -41,7 +41,7 @@ impl Contract {
41
)),
42
}),
43
owner_id: caller,
44
- price: price.map(|p| p.into()),
+ price: price.map(|p| NearToken::from_yoctonear(p.0)),
45
}
46
)
47
.is_none(),
0 commit comments