From the documentation at https://developers.eos.io/eosio-cpp/docs/token-tutorial:
cleos set contract eosio.token build/contracts/eosio.token -p eosio.token@active
But from the documentation at https://developers.eos.io/eosio-cleos/reference#cleos-set-contract:
set contract (below are parameters:)
Positional Parameters:
account TEXT - The account to publish a contract for
wast-file TEXT - The file containing the contract WAST or WASM
abi-file TEXT - The ABI for the contract
So which is it? I'm confused b/c the documentatin is inconsistent.
Documentation is outdated. You can run cleos set contract help
to see latest docs. It would result to:
Also, if your wast/abi files have the same name as folder, you my specify only contract-dir.
"How to Create and Deploy Your Own EOS Token" might be helpful.