Skip to content

Commit

Permalink
fix remaining error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Foivos committed Nov 18, 2024
1 parent 7dd615b commit 6a1c45a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions move/its/sources/discovery.move
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ use std::ascii;
use std::type_name;
use sui::address;

const EUnsupportedMessageType: u64 = 0;
const EInvalidMessageType: u64 = 0;
#[error]
const EUnsupportedMessageType: vector<u8> = b"unsupported message type";
#[error]
const EInvalidMessageType: vector<u8> = b"invalid message type";

const MESSAGE_TYPE_INTERCHAIN_TRANSFER: u256 = 0;
const MESSAGE_TYPE_DEPLOY_INTERCHAIN_TOKEN: u256 = 1;
Expand Down
3 changes: 2 additions & 1 deletion move/its/sources/types/flow_limit.move
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ use sui::clock::Clock;

const EPOCH_TIME: u64 = 6 * 60 * 60 * 1000;

const EFlowLimitExceeded: u64 = 0;
#[error]
const EFlowLimitExceeded: vector<u8> = b"flow limit exceeded";

public struct FlowLimit has store, copy, drop {
flow_limit: u64,
Expand Down
3 changes: 2 additions & 1 deletion move/its/sources/types/trusted_addresses.move
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ module its::trusted_addresses;

use std::ascii::String;

const EMalformedTrustedAddresses: u64 = 0;
#[error]
const EMalformedTrustedAddresses: vector<u8> = b"malformed trusted addresses";

public struct TrustedAddresses has copy, drop {
trusted_chains: vector<String>,
Expand Down

0 comments on commit 6a1c45a

Please sign in to comment.