Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIP-39 BD-4537 update errors to match spec #299

Merged
merged 1 commit into from
Mar 22, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions contracts/fio.address/fio.address.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -778,7 +778,7 @@ namespace fioio {
const uint128_t nameHash = string_to_uint128_hash(fa.fioaddress.c_str());
const uint128_t domainHash = string_to_uint128_hash(fa.fiodomain.c_str());

fio_400_assert(!fa.domainOnly, "fio_address", fa.fioaddress, "Invalid FIO address",
fio_400_assert(!fa.domainOnly, "fio_address", fa.fioaddress, "FIO Address invalid or does not exist.",
ErrorInvalidFioNameFormat);

auto domainsbyname = domains.get_index<"byname"_n>();
Expand All @@ -798,7 +798,7 @@ namespace fioio {
auto namesbyname = fionames.get_index<"byname"_n>();
auto fioname_iter = namesbyname.find(nameHash);
fio_400_assert(fioname_iter != namesbyname.end(), "fio_address", fa.fioaddress,
"FIO address not registered", ErrorFioNameNotRegistered);
"FIO Address invalid or does not exist", ErrorInvalidFioNameFormat);
fio_403_assert(fioname_iter->owner_account == actor.value,
ErrorSignature); // check if actor owns FIO Address

Expand Down