forge fmt
This commit is contained in:
parent
e8a8ee4e92
commit
6adc8985c1
|
@ -134,9 +134,12 @@ contract CoreRelayerMessages is CoreRelayerStructs, CoreRelayerGetters {
|
||||||
returns (bytes memory encoded)
|
returns (bytes memory encoded)
|
||||||
{
|
{
|
||||||
encoded = abi.encodePacked(
|
encoded = abi.encodePacked(
|
||||||
container.payloadId, container.requesterAddress, uint8(container.messages.length), uint8(container.instructions.length)
|
container.payloadId,
|
||||||
|
container.requesterAddress,
|
||||||
|
uint8(container.messages.length),
|
||||||
|
uint8(container.instructions.length)
|
||||||
);
|
);
|
||||||
|
|
||||||
for (uint256 i = 0; i < container.messages.length; i++) {
|
for (uint256 i = 0; i < container.messages.length; i++) {
|
||||||
encoded = abi.encodePacked(encoded, encodeMessageInfo(container.messages[i]));
|
encoded = abi.encodePacked(encoded, encodeMessageInfo(container.messages[i]));
|
||||||
}
|
}
|
||||||
|
|
|
@ -109,7 +109,7 @@ contract MockGenericRelayer {
|
||||||
parser.decodeDeliveryInstructionsContainer(parsedDeliveryVAA.payload);
|
parser.decodeDeliveryInstructionsContainer(parsedDeliveryVAA.payload);
|
||||||
|
|
||||||
bytes[] memory encodedVMsToBeDelivered = new bytes[](container.messages.length);
|
bytes[] memory encodedVMsToBeDelivered = new bytes[](container.messages.length);
|
||||||
console.log("AA");
|
console.log("AA");
|
||||||
for (uint8 i = 0; i < container.messages.length; i++) {
|
for (uint8 i = 0; i < container.messages.length; i++) {
|
||||||
for (uint8 j = 0; j < encodedVMs.length; j++) {
|
for (uint8 j = 0; j < encodedVMs.length; j++) {
|
||||||
if (messageInfoMatchesVAA(container.messages[i], encodedVMs[j])) {
|
if (messageInfoMatchesVAA(container.messages[i], encodedVMs[j])) {
|
||||||
|
|
Loading…
Reference in New Issue