Don't save vaaKey as local variable

This commit is contained in:
derpy-duck 2023-06-09 16:10:08 +00:00
parent 5a2d0b77cc
commit a9172379c5
1 changed files with 1 additions and 2 deletions

View File

@ -96,10 +96,9 @@ library WormholeRelayerSerde {
pure
returns (bytes memory encoded)
{
bytes memory vaaKey = encodeVaaKey(strct.deliveryVaaKey);
encoded = abi.encodePacked(
PAYLOAD_ID_REDELIVERY_INSTRUCTION,
vaaKey,
encodeVaaKey(strct.deliveryVaaKey),
strct.targetChain,
strct.newRequestedReceiverValue,
encodeBytes(strct.newEncodedExecutionInfo),