Skip to content

Commit

Permalink
Merge pull request #36 from fioprotocol/feature/MAS-1955-remaddress_e…
Browse files Browse the repository at this point in the history
…rror

MAS-1955 - update invalid fio address error to meet spec
  • Loading branch information
ericbutz authored Sep 4, 2020
2 parents 81eb24b + 65be6ef commit 3823032
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions contracts/fio.address/fio.address.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -269,8 +269,7 @@ namespace fioio {

auto namesbyname = fionames.get_index<"byname"_n>();
auto fioname_iter = namesbyname.find(nameHash);
fio_404_assert(fioname_iter != namesbyname.end(), "FIO Address not found", ErrorFioNameNotRegistered);

fio_400_assert(fioname_iter != namesbyname.end(), "fio_address", fioaddress, "Invalid FIO Address", ErrorFioNameNotRegistered);
const uint32_t name_expiration = fioname_iter->expiration;
const uint32_t present_time = now();

Expand Down Expand Up @@ -1172,7 +1171,7 @@ namespace fioio {
ErrorPubKeyValid);
fio_400_assert(max_fee >= 0, "max_fee", to_string(max_fee), "Invalid fee value",
ErrorMaxFeeInvalid);
fio_400_assert(validateFioNameFormat(fa), "fio_address", fa.fioaddress, "FIO Address not found",
fio_400_assert(validateFioNameFormat(fa), "fio_address", fa.fioaddress, "Invalid FIO Address",
ErrorDomainAlreadyRegistered);
fio_400_assert(public_addresses.size() <= 5 && public_addresses.size() > 0, "public_addresses", "public_addresses",
"Min 1, Max 5 public addresses are allowed",
Expand Down

0 comments on commit 3823032

Please sign in to comment.