Skip to content

Commit

Permalink
Merge pull request #299 from fioprotocol/feature/BD-4537-fiocontracts…
Browse files Browse the repository at this point in the history
…-develop-03222023

FIP-39 BD-4537 update errors to match spec
  • Loading branch information
ericbutz authored Mar 22, 2023
2 parents c2c55f6 + 619a024 commit 97024b6
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit 97024b6

Please sign in to comment.