Basic EOS Programming - Discussion

i am trying to deploy my instance and am getting a transaction authority declared (actor helloworld permission active) does not have signature any help please and how can i delete and start over ?
thanks

1 Like

Already replied on another topic :nerd_face:

Could you please provide an screenshot of the error? Might be helpful to read what the error is being show to you directly from the console, probably you have not selected the correct account.

Carlos Z

image
can i get help please cant get this to build

1 Like

Please provide the code in the following way to check if there any error in our code :face_with_monocle:

FAQ - How to post code in the forum

Carlos Z

#ifndef HELLOWORLD
#define HELLOWORLD

#include <eosio/eosio.hpp>

CONTRACT helloworld : public eosio::contract
{
public:
using eosio::contract::contract;
ACTION hi(eosio::name const & nm);
};
#endif
#include <helloworld.hpp>

void helloworld::(eosio::name const & nm)

{

eosio::print("Hello ",nm);

}

1 Like

Hey @John_Nutter, hope you are well.

There are too many syntax issues in your contract. I suggest to rewatch the EOS 101 videos if you are confuse with the syntax for each file.

You are declaring CONTRACT helloworld : public eosio::contract but this one is already declared in helloworld.hpp.

Also that #include <helloworld.hpp> should be on top of the file, not after.

#endif should be at the end of the proper declaration.

Carlos Z

Canā€™t figure out why my program wonā€™t compile. Iā€™m using the 1.6.2 version of CDT. Below is a paste of the error message:

/project/src/helloworld.cpp:3:19: error: out-of-line definition of ā€˜hiā€™ does not match any declaration in ā€˜helloworldā€™

void helloworld:: hi(eosio::name & nm)

              ^~

include/helloworld.hpp:9:13: note: type of 1st parameter of member declaration does not match definition (ā€˜const eosio::name &ā€™ vs ā€˜eosio::name &ā€™)

ACTION hi(eosio::name const & nm);

        ^

1 error generated.

Error while processing /project/src/helloworld.cpp.

abigen error

Warning, empty ricardian clause file

Warning, empty ricardian clause file

Warning, action does not have a ricardian contract

@filip @thecil

1 Like

Donā€™t worry! Managed to realise my issue. Was missing a public declaration so the cpp file couldnā€™t get access to the hpp fileā€™s CONTRACT template!

1 Like

Hey guys,

Iā€™m having a issue with EOS Studio. I did the contract ā€œhelloworldā€ like Philips did, however my .abi file is completely empty and the .wasm file has this error written.

"Error: readWasm failed:
0000000: error: unable to read uint32_t: magic"

Iā€™m running the EOS Studio Online (iā€™m using windows), and when I try to use the cloud network (I donā€™t have the local option), says that itā€™s down (maybe the error is related to this). But I canā€™t do any contracts compile. So iā€™m kinda stuck in this course.

Does anyone knows what is happening? :anguished:

Hey @Nuno_Silva, hope you are great!

Iā€™ll be honest with you, our EOS courses are quite old, we have not updated them because the EOS Studio Online is giving a lot of issues over time, some times, the tool does not work correctly, therefore all the process to program or learn EOS is quite a pain.

If you really want to keep going into the course, i might advice to skip using EOS Studio, at the EOS 201 course, we will teach you how to use CLEOS which is the sdk for program smart contract on a local eos blockchain, then you can just use that sdk to program any smart contract.

Here are some old guidelines that i made to execute properly all CLEOS commands, all this commands are mentioned in the EOS 201 course, i just made this to save me time on learning each command and step to deploy an smart contract properly: https://github.com/thecil/EOSCoding

Sorry for the inconveniences :nerd_face:

Carlos Z

Dear @thecil I just started taking EOS 101, ran into trouble installing EOS Studio, started looking for an answer here and saw many posts from you where you say that your EOS courses are quite old. Please tell me, is there any point in (option 1) taking this course further by trying to solve the problems somehow, or is it way behind the times, problems will arise at every step and (option 2) itā€™s better to find some other resource to learn EOS programming?

If still option 1, then please tell me the best way to take EOS courses. From the answer above I see that I can learn about local setup in EOS 201, did I understand correctly that after that I should go back to the EOS 101 course?

Hey Nikolay, indeed, you could learn how to setup you local node with CLEOS (using the EOS 201 lessons) and then go back to EOS 101 to continue the course, since the EOS Studio is not working properly for the course anymore, but using CLEOS for it is still possible, just that will require to know how to use the local node (cleos).

Carlos Z