diff --git a/packages/core-cairo/src/erc721.ts b/packages/core-cairo/src/erc721.ts index e68840c52..bbc69bc8f 100644 --- a/packages/core-cairo/src/erc721.ts +++ b/packages/core-cairo/src/erc721.ts @@ -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 = { name: 'MyToken', @@ -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);' ]