Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I fix typos #47

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion contracts/Endpoint.sol
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ contract Endpoint is Ownable, ILayerZeroEndpoint {
// Migration step 2: set the receive version
// after all messages sent from the old version are received
// the UA can now safely switch to the new receive version
// it is the UA's responsibility make sure all messages from the old version are processed
// it is the UA's responsibility to make sure all messages from the old version are processed
function setReceiveVersion(uint16 _newVersion) external override validVersion(_newVersion) {
// write into config
LibraryConfig storage uaConfig = uaConfigLookup[msg.sender];
Expand Down
2 changes: 1 addition & 1 deletion contracts/UltraLightNode.sol
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ contract UltraLightNode is ILayerZeroMessagingLibrary, ILayerZeroUltraLightNodeV

// (a - 3), pay the protocol
{
// if no ZRO token or not specifying a payment address, pay in native token
// if no ZRO token or not specify a payment address, pay in native token
bool payInNative = _zroPaymentAddress == address(0x0) || address(layerZeroToken) == address(0x0);
uint protocolFee = treasuryContract.getFees(!payInNative, totalNativeFee, oracleFee); // totalNativeFee == relayerFee here

Expand Down
2 changes: 1 addition & 1 deletion contracts/proof/FPValidator.sol
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ contract FPValidator is ILayerZeroValidationLibrary, IValidationLibraryHelperV2
}

// TYPE_SWAP_REMOTE == 1 && only if the payload has a payload
// only swapRemote inside of stargate can call sgReceive on an user supplied to address
// only swapRemote inside of stargate can call sgReceive on a user supplied to address
// thus we do not care about the other type functions even if the toAddress is overly long.
if (functionType == 1) {
// decode the _payload with its types
Expand Down
2 changes: 1 addition & 1 deletion contracts/proof/MPTValidator01.sol
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ contract MPTValidator01 is ILayerZeroValidationLibrary, IValidationLibraryHelper
}

// TYPE_SWAP_REMOTE == 1 && only if the payload has a payload
// only swapRemote inside of stargate can call sgReceive on an user supplied to address
// only swapRemote inside of stargate can call sgReceive on a user supplied to address
// thus we do not care about the other type functions even if the toAddress is overly long.
if (functionType == 1) {
// decode the _payload with its types
Expand Down