Skip to content

Commit

Permalink
chore(protocol): fix documentation (#18694)
Browse files Browse the repository at this point in the history
  • Loading branch information
RogerLamTd authored Jan 2, 2025
1 parent 2fc6030 commit c7c01a1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ contract DcapTestUtils {
// Converts a string to a hexstring (of bytes type)
// https://ethereum.stackexchange.com/questions/39989/solidity-convert-hex-string-to-bytes

// Convert an hexadecimal character to their value
// Convert a hexadecimal character to their value
function _fromHexChar(uint8 c) private pure returns (uint8) {
if (bytes1(c) >= bytes1("0") && bytes1(c) <= bytes1("9")) {
return c - uint8(bytes1("0"));
Expand All @@ -249,7 +249,7 @@ contract DcapTestUtils {
revert("failed to convert hex value");
}

// Convert an hexadecimal string to raw bytes
// Convert a hexadecimal string to raw bytes
function _fromHex(string memory s) private pure returns (bytes memory) {
bytes memory ss = bytes(s);
require(ss.length % 2 == 0); // length must be even
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ contract BridgeTest2_sendMessage is BridgeTest2 {
vm.expectRevert(Bridge.B_INVALID_CHAINID.selector);
bridge.sendMessage(message);

// an bridge has been registered for remoteChainId
// a bridge has been registered for remoteChainId
message.destChainId = remoteChainId;
bridge.sendMessage(message); // id = 0

Expand Down

0 comments on commit c7c01a1

Please sign in to comment.