Skip to content

Commit

Permalink
chore(errors.js): add more errors
Browse files Browse the repository at this point in the history
  • Loading branch information
gitmp01 committed Oct 31, 2024
1 parent f52e80c commit 8afd1e2
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions cpp/test/utils/errors.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ const SYMBOL_NOT_FOUND = eosio_assert('symbol not found')
const FROM_ACCOUNT_IS_FROZEN = eosio_assert('from account is frozen')
const TO_ACCOUNT_IS_FROZEN = eosio_assert('to account is frozen')

const SINGLETON_NOT_EXISTING = eosio_assert('singleton does not exist')
const ORIGIN_CHAINID_NOT_REGISTERED = eosio_assert(
'origin chain_id not registered',
)

const INVALID_SIGNATURE = eosio_assert('invalid signature')

module.exports = {
AUTH_MISSING,
SYMBOL_NOT_FOUND,
Expand All @@ -26,4 +33,7 @@ module.exports = {
NO_ALLOWANCE_SET,
FROM_ACCOUNT_IS_FROZEN,
TO_ACCOUNT_IS_FROZEN,
SINGLETON_NOT_EXISTING,
ORIGIN_CHAINID_NOT_REGISTERED,
INVALID_SIGNATURE,
}

0 comments on commit 8afd1e2

Please sign in to comment.