Hello, I am trying to run the Aex-9 token contract locally and I want to give my token a name, decimals, and inital owner balance.
How should I do so? I know in the online editors we can put them as inital values, but with the local enviorment aeproject how should I do this? It seems like it would have to come from outside the contract because init is the first function to run, correct?
Should I edit the test, or how should I set these initial values?
Here might be the online editors’ workflow:
fill the values->compile the bytecode of the contract and the bytycode of the init call->build transaction->post to the mainnet.
in this AEX-9 contract, cb_KxFE1kQfSy1Ub2tlbiBOYWVtZSQNQUFCr4IAAQEbb4wDOy48n9CAPOf//8ASHl32
is the init call, you can not read the values directly, but you could decode it in aeknow.chain, looks as:
Cannot translate FATE value {tuple,
{<<68,214,68,31>>,
{tuple,
{<<“Token Naeme”>>,18,<<“AAB”>>,
{variant,
[0,1],
1,
{1000000000000000000000000000}}}}}}
of Sophia type unit