Skip to content

Commit 9b1d30f

Browse files
committed
Fmt
1 parent d27addd commit 9b1d30f

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ solidity/artifacts
55
solidity/cache_hardhat
66
solidity/ignition/deployments
77
solidity/typechain-types
8+
cairo/target

solidity/src/modules/growing/EvmOnChainGrowingModule.sol

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,8 @@ contract EvmOnChainGrowingModule is IEvmOnChainGrowingModule {
7575
uint256 accumulatedChainId,
7676
bytes32 hashingFunction
7777
) internal returns (MMRGrowResult memory result) {
78-
(uint256 proofMmrId, uint256 referenceProofLeafIndex, bytes32[] memory referenceProof, bytes32[] memory referencePeaks, bytes memory referenceHeaderSerialized) = abi.decode(
79-
ctx,
80-
(uint256, uint256, bytes32[], bytes32[], bytes)
81-
);
78+
(uint256 proofMmrId, uint256 referenceProofLeafIndex, bytes32[] memory referenceProof, bytes32[] memory referencePeaks, bytes memory referenceHeaderSerialized) = abi
79+
.decode(ctx, (uint256, uint256, bytes32[], bytes32[], bytes));
8280

8381
_validateParentBlockAndProveIntegrity(proofMmrId, referenceProofLeafIndex, referenceProof, referencePeaks, referenceHeaderSerialized, accumulatedChainId, hashingFunction);
8482

@@ -104,7 +102,7 @@ contract EvmOnChainGrowingModule is IEvmOnChainGrowingModule {
104102
uint256 accumulatedChainId,
105103
bytes32 hashingFunction
106104
) internal returns (MMRGrowResult memory result) {
107-
(uint256 blockNumber) = abi.decode(ctx, (uint256)); // First appended block (reference block - 1)
105+
uint256 blockNumber = abi.decode(ctx, (uint256)); // First appended block (reference block - 1)
108106
ISatellite.SatelliteStorage storage s = LibSatellite.satelliteStorage();
109107

110108
bytes32 expectedHash = s.receivedParentHashes[accumulatedChainId][hashingFunction][blockNumber + 1];

0 commit comments

Comments
 (0)