Let's see.
Writing the code.
importsmartpyasspfa2=sp.io.import_script_from_url("file:./fa2.py")classToken(fa2.FA2):passadmin=sp.address("tz1Qd55E9faDRDUWVbFTv4GXe7mA46NPctLx")sp.add_compilation_target("Token",Token(config=fa2.FA2_config(non_fungible=True,assume_consecutive_token_ids=False),admin=admin,metadata=sp.big_map({"":sp.utils.bytes_of_string("tezos-storage:content"),"content":sp.utils.bytes_of_string("""{name: "LOL"}"""),})))
Deploying the code
Since, we're not noob here, let's create a makefile.
SP=~/smartpy-cli/SmartPy.shSHELL := /bin/bashnft: $(SP) compile ./nft.py ./output --html $(SP) originate-contract \ --code ./output/Token/step_000_cont_1_contract.tz \ --storage ./output/Token/step_000_cont_1_storage.tz \ --rpc https://hangzhounet.smartpy.io
Then write the following command to deploy the code to testnet.
make nft
Got any question, leave in the comments.
Top comments(0)
Subscribe
For further actions, you may consider blocking this person and/orreporting abuse