eos icon indicating copy to clipboard operation
eos copied to clipboard

sample contract fails

Open bitcoiners opened this issue 8 years ago • 4 comments

Following getting started instructions I get an error: this is on dawn-2.x

:~/eos/build/programs/eosc# ./eosc create account inita currency EOS7DDzzuNkkrzGgYzQ7Yd8p1Y4ubPcUdbmVN5YL59bHkCBQaGxyN EOS7NgaFxU9CyiZR1vE6SUvft5Vd2xNZ51zD9Ggwsb1N9RvJPW86W
387995ms            main.cpp:1195                 main                 ] Failed with error: Assert Exception (10)
status_code == 200: Error code 401
: {"code":401,"message":"UnAuthorized","details":"signatures do not satisfy declared authorizations (3030002)\nTransaction declares authority '{\"account\":\"inita\",\"permission\":\"active\"}', but does not have signatures for it.\n"}



~/eos/build/programs/eosc# ./eosc wallet keys
[[
    "EOS6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV",
    "5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3"
  ]
]

bitcoiners avatar Feb 22 '18 15:02 bitcoiners

I met same problem, any one can help ?

brain-hu avatar Mar 14 '18 10:03 brain-hu

Please create with account eosio, and must create wallet and import private key.

brain-hu avatar Mar 15 '18 02:03 brain-hu

@pokerchain Hello,

I also encountered the problem of consent. Later, I modified the "inita", and the operation was as follows:

I have imported the private key key. $ ./eosc wallet keys [[ "EOS6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV", "5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3" ], [ "EOS6R2WLhbCUMi6qRQfHJFJ5zcRDdBv8FWRGLdtbptYPvPaaJccGF", "5KWKF37a8vQQsXFJedT4MbBkXgG517ENzjfUTDV2GqSdg5fDmno" ], [ "EOS7isEPRbLbbm23HRtsvopWcsBEMAd8zb5W4oLfF2XrUacmEqnfJ", "5JzSHuiyqkCKGAnoumYLNqfXK3ZabGaQqSB5eSLV3ZgQ2UGHxzo" ] ]

And then create an account: ./eosc create account inita currency EOS7DDzzuNkkrzGgYzQ7Yd8p1Y4ubPcUdbmVN5YL59bHkCBQaGxyN EOS7NgaFxU9CyiZR1vE6SUvft5Vd2xNZ51zD9Ggwsb1N9RvJPW86W

inita is the account authorizing the creation of the currency account.

I changed "inita" to the name "default" of the wallet I created: $ ./eosc create account default currency EOS7isEPRbLbbm23HRtsvopWcsBEMAd8zb5W4oLfF2XrUacmEqnfJ EOS6R2WLhbCUMi6qRQfHJFJ5zcRDdBv8FWRGLdtbptYPvPaaJccGF

but, indicating the following error: 107053ms main.cpp:1195 main ] Failed with error: Assert Exception (10) status_code == 200: Error code 500 : {"code":500,"message":"Internal Service Error","details":"unknown key"}

Thank you.

AlanChen04 avatar Mar 21 '18 11:03 AlanChen04

@bitcoiners I success, and look this #1726 , and go to http://t1wallet.eos.io to create an authorized account.

AlanChen04 avatar Mar 22 '18 10:03 AlanChen04