When writing contracts, the contract class in file name_a.cpp is defined as follows:
class[[eosio::contract("name_a")]] name_b : public contract {..}
In my understanding the name of the class is name_b
and the contract is called name_a
.
The contract is then deployed to the testnet with the following command with an account named name_c
:
cleos -u https://testnet.waxsweden.org set contract name_c /path/to/contract/ name_a.wasm name_a.abi -p name_c@active
What exactly is the name of this contract which must be used for transactions?
My guess would be name_c
as this is the name of the account that owns the contract. But what happens with the name specified in [[eosio::contract("name_a")]]
? For what is it used?