Skip to content

Commit

Permalink
change inequality to equality for checking return data length
Browse files Browse the repository at this point in the history
  • Loading branch information
derpy-duck committed Oct 12, 2023
1 parent 3bd11bb commit 4620276
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ abstract contract WormholeRelayerDelivery is WormholeRelayerBase, IWormholeRelay
QUOTE_LENGTH_BYTES
);

if(externalCallSuccess && returnData.length >= QUOTE_LENGTH_BYTES) {
if(externalCallSuccess && returnData.length == QUOTE_LENGTH_BYTES) {
baseDeliveryPrice = abi.decode(returnData, (LocalNative));
success = true;
} else {
Expand Down

0 comments on commit 4620276

Please sign in to comment.