Skip to main content

nameName structure contains "account_name value" attribute. Look at "eosiolib\types.hpp"

account_name is just uint64_t; (eosiolib\types.h)

so uSo you can:

account_name a = N("accname"); //eq of string_to_name(..)
name n = name {a};
a = n;
string accname = n.to_string();

lookLook at hello\hello.cpp for example.

name structure contains "account_name value" attribute. Look at "eosiolib\types.hpp"

account_name is just uint64_t; (eosiolib\types.h)

so u can:

account_name a = N("accname"); //eq of string_to_name(..)
name n = name {a};
a = n;
string accname = n.to_string();

look at hello\hello.cpp for example.

Name structure contains "account_name value" attribute. Look at "eosiolib\types.hpp"

account_name is just uint64_t; (eosiolib\types.h)

So you can:

account_name a = N("accname"); //eq of string_to_name(..)
name n = name {a};
a = n;
string accname = n.to_string();

Look at hello\hello.cpp for example.

Source Link

name structure contains "account_name value" attribute. Look at "eosiolib\types.hpp"

account_name is just uint64_t; (eosiolib\types.h)

so u can:

account_name a = N("accname"); //eq of string_to_name(..)
name n = name {a};
a = n;
string accname = n.to_string();

look at hello\hello.cpp for example.