git.delta.rocks / unique-network / refs/commits / 83275847f907

difftreelog

Fix PR

Trubnikov Sergey2022-07-01parent: #63e242d.patch.diff
in: master

3 files changed

modifiedprimitives/data-structs/src/lib.rsdiffbeforeafterboth
181pub struct TokenData<CrossAccountId> {181pub struct TokenData<CrossAccountId> {
182 pub properties: Vec<Property>,182 pub properties: Vec<Property>,
183 pub owner: Option<CrossAccountId>,183 pub owner: Option<CrossAccountId>,
184 pub pieces: Option<u128>,184 pub pieces: u128,
185}185}
186186
187pub struct OverflowError;187pub struct OverflowError;
modifiedruntime/common/src/runtime_apis.rsdiffbeforeafterboth
90 let token_data = TokenData {90 let token_data = TokenData {
91 properties: Self::token_properties(collection, token_id, keys)?,91 properties: Self::token_properties(collection, token_id, keys)?,
92 owner: Self::token_owner(collection, token_id)?,92 owner: Self::token_owner(collection, token_id)?,
93 pieces: Self::total_pieces(collection, token_id)?93 pieces: Self::total_pieces(collection, token_id)?.expect("Token pieces always must have some value"),
94 };94 };
9595
96 Ok(token_data)96 Ok(token_data)
modifiedtests/src/interfaces/unique/definitions.tsdiffbeforeafterboth
79 allowed: fun('Check if user is allowed to use collection', [collectionParam, crossAccountParam()], 'bool'),79 allowed: fun('Check if user is allowed to use collection', [collectionParam, crossAccountParam()], 'bool'),
80 nextSponsored: fun('Get number of blocks when sponsored transaction is available', [collectionParam, crossAccountParam(), tokenParam], 'Option<u64>'),80 nextSponsored: fun('Get number of blocks when sponsored transaction is available', [collectionParam, crossAccountParam(), tokenParam], 'Option<u64>'),
81 effectiveCollectionLimits: fun('Get effective collection limits', [collectionParam], 'Option<UpDataStructsCollectionLimits>'),81 effectiveCollectionLimits: fun('Get effective collection limits', [collectionParam], 'Option<UpDataStructsCollectionLimits>'),
82 totalPieces: fun('Get total pieces of token', [collectionParam, tokenParam], 'Option<u128>'),
82 },83 },
83};84};
8485