From af72f9305b9c9bd4b4c9feefadab74e0b14256c6 Mon Sep 17 00:00:00 2001 From: Elias Rad <146735585+nnsW3@users.noreply.github.com> Date: Sat, 2 Dec 2023 20:57:29 +0200 Subject: [PATCH 1/4] fix typos FPValidator.sol --- contracts/proof/FPValidator.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/proof/FPValidator.sol b/contracts/proof/FPValidator.sol index 4ea48d3..d8e1fae 100644 --- a/contracts/proof/FPValidator.sol +++ b/contracts/proof/FPValidator.sol @@ -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 From 39236cba4c5ea168b690e4e13977a0ed65cd39f0 Mon Sep 17 00:00:00 2001 From: Elias Rad <146735585+nnsW3@users.noreply.github.com> Date: Sat, 2 Dec 2023 20:58:14 +0200 Subject: [PATCH 2/4] fix typos MPTValidator01.sol --- contracts/proof/MPTValidator01.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/proof/MPTValidator01.sol b/contracts/proof/MPTValidator01.sol index 7e9f09a..9792ac5 100644 --- a/contracts/proof/MPTValidator01.sol +++ b/contracts/proof/MPTValidator01.sol @@ -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 From 0d16aeca55d748a32535bdeed34c67e07527908a Mon Sep 17 00:00:00 2001 From: Elias Rad <146735585+nnsW3@users.noreply.github.com> Date: Sat, 2 Dec 2023 20:59:40 +0200 Subject: [PATCH 3/4] fix typos Endpoint.sol --- contracts/Endpoint.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/Endpoint.sol b/contracts/Endpoint.sol index 219ab6b..37ae767 100644 --- a/contracts/Endpoint.sol +++ b/contracts/Endpoint.sol @@ -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]; From f5ee1c125f0a5493ab01edb2f0594254d50c72ee Mon Sep 17 00:00:00 2001 From: Elias Rad <146735585+nnsW3@users.noreply.github.com> Date: Sat, 2 Dec 2023 21:01:30 +0200 Subject: [PATCH 4/4] fix typos UltraLightNode.sol --- contracts/UltraLightNode.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/UltraLightNode.sol b/contracts/UltraLightNode.sol index 653ba3b..6fa26ae 100644 --- a/contracts/UltraLightNode.sol +++ b/contracts/UltraLightNode.sol @@ -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