oxheadalpha / smart-contracts

A library of smart contracts
MIT License
102 stars 31 forks source link

Can't Seem To Find Entrypoint for fa2_nft_asset #76

Closed johnnyshankman closed 3 years ago

johnnyshankman commented 3 years ago

How exactly do I reference the entry points of fa2_nft_asset.mligo?

I can manage to compile with

ligo compile-contract --michelson-format=json nft_assets/ligo/src/fa2_nft_asset.mligo nft_asset_main > contract.json

But setting up even just one dry-run command seems to take a really intense amount of knowledge? I can't seem to figure out how to hit the Tokens() entry point for example.

$ ligo run dry-run nft_assets/ligo/src/fa2_nft_asset.mligo -e nft_asset_main
Invalid command line argument.
The provided entrypoint is not found in the contract.

It's arcane how to to use the contract's API/entry points.