Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ericglau committed Nov 29, 2023
1 parent d0c525b commit 2a1896a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/core-cairo/src/erc721.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
import { Contract, ContractBuilder, Impl } from './contract';
import { Contract, ContractBuilder } from './contract';
import { Access, requireAccessControl, setAccessControl } from './set-access-control';
import { addPausable, setPausable } from './add-pausable';
import { defineFunctions } from './utils/define-functions';
import { CommonOptions, withCommonDefaults, getSelfArg } from './common-options';
import { setUpgradeable } from './set-upgradeable';
import { setInfo } from './set-info';
import { OptionsError } from './error';
import { defineComponents } from './utils/define-components';
import { defaults as commonDefaults } from './common-options';
import { printContract } from './print';
// import { importGetCallerAddress } from './common-functions';

export const defaults: Required<ERC721Options> = {
name: 'MyToken',
Expand Down Expand Up @@ -142,6 +140,7 @@ const functions = defineFunctions({
{ name: 'tokenId', type: 'u256' }
],
code: [
'let caller = get_caller_address();',
'// TODO check if caller is the token owner',
'self.erc721._burn(tokenId);'
]
Expand Down

0 comments on commit 2a1896a

Please sign in to comment.