eos icon indicating copy to clipboard operation
eos copied to clipboard

Unable to issue token to myself

Open fundurian opened this issue 8 years ago • 8 comments

Hello, so below is the step i do

  1. cleos set contract cdexaccount1 /root/eos/build/contracts/eosio.token -p cdexaccount1

  2. cleos push action cdexaccount1 create ‘[“cdexaccount1”,”500000000.00 CDX”]’ -p cdexaccount1

  3. cleos push action cdexaccount1 issue '[ “fundurian112”, “100.00 CDX”, "memo" ]' -p cdexaccount1

then i get error message as below when i do the number3, number1 and number 2 run successfully

the error message is Error 3050003: eosio_assert_message assertion failure

fundurian avatar Jun 20 '18 05:06 fundurian

Try -p eosio instead of -p cdexaccount1 in your third command. Issuing actually requires three transactions, and fairly sweeping permissions.

jgiszczak avatar Jun 21 '18 00:06 jgiszczak

no, i cannot use -p eosio as i dont have permission

Do note the above 3 step running fine prior to v1.0.5

fundurian avatar Jun 21 '18 01:06 fundurian

I could not reproduce this (unless the account you are issuing to does not exist).

To get more information about what the actual error message is, please rerun the nodeos instance you are connecting to with --verbose-http-errors (a change in v1.0.4 was too aggressive in squelching debugging output over HTTP which should be made a little more verbose by default in a future release) and try running step 3 again. Then please post the actual error message here.

arhag avatar Jun 21 '18 17:06 arhag

Hello arhag I want to ask is this the correct way to issue token?

  1. If i issue my own token using my own account+smart contract, the token only exist on my own smart contract and all transaction is not visible on other people block explorer such as eospark.com

  2. or all token should be issued by official EOSIO.token account only? If this is the case, we dont have authority to use EOSIO.token account to issue our token for ourself?

fundurian avatar Jun 22 '18 01:06 fundurian

@fundurian Any further hint you can share with the --verbose-http-errors option?

andriantolie avatar Jun 26 '18 09:06 andriantolie

I figured out the issue, it is due to I created the token with 0 decimal point, so when I issue the token i need to put 0 decimal point instead of 2 decimal point

fundurian avatar Jul 14 '18 04:07 fundurian

Great. So I assume this issue is solved?

andriantolie avatar Jul 16 '18 01:07 andriantolie

Yes, solved

fundurian avatar Jul 16 '18 07:07 fundurian