Skip to content

Commit

Permalink
update error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Lam committed Oct 17, 2023
1 parent 3e5d6c1 commit ebc937f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@ contract BridgeToken is ERC20Burnable {
) ERC20(tokenName, tokenSymbol) {
require(
sourceChainID != bytes32(0),
"BridgeToken: invalid source chain id"
"BridgeToken: zero source chain id"
);
require(
sourceBridge != address(0),
"BridgeToken: invalid source bridge address"
"BridgeToken: zero source bridge address"
);
require(
sourceAsset != address(0),
"BridgeToken: invalid source asset address"
"BridgeToken: zero source asset address"
);
bridgeContract = msg.sender;
nativeChainID = sourceChainID;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ contract ERC20Bridge is IERC20Bridge, ITeleporterReceiver, ReentrancyGuard {
constructor(address teleporterMessengerAddress) {
require(
teleporterMessengerAddress != address(0),
"ERC20Bridge: Invalid teleporter messenger address"
"ERC20Bridge: invalid teleporter messenger address"
);

teleporterMessenger = ITeleporterMessenger(teleporterMessengerAddress);
Expand Down

0 comments on commit ebc937f

Please sign in to comment.