File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -227,6 +227,19 @@ export default Canister({
227
227
return Ok ( state . nextTxid ( ) ) ;
228
228
}
229
229
) ,
230
+ // Not exported as canister method because of incorrect interface.
231
+ // See https://github.com/Psychedelic/DIP721/issues/5
232
+ // getApprovedDip721: query([nat64], Result(Principal, Error), (tokenId) => {
233
+ // const nft = state.nfts[Number(tokenId)];
234
+
235
+ // if (nft === undefined) {
236
+ // return Err({ InvalidTokenId: null });
237
+ // }
238
+
239
+ // return nft.approved.Some === undefined
240
+ // ? Ok(ic.caller())
241
+ // : Ok(nft.approved.Some);
242
+ // }),
230
243
isApprovedForAllDip721 : query ( [ Principal ] , bool , ( operator ) => {
231
244
const operators = state . operators . get ( ic . caller ( ) . toText ( ) ) ;
232
245
const callerIsOperator =
You can’t perform that action at this time.
0 commit comments