Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Oba <[email protected]>
  • Loading branch information
enitrat and obatirou authored Oct 16, 2024
1 parent 4f1ebfe commit 7be2de1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/CairoLib.sol
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@ library CairoLib {
}


/// @notice Performs a multicall to a Cairo contract deployed on Starknet.
/// @notice Performs a multicall to Cairo contracts deployed on Starknet.
/// @dev Used with intent to modify the state of the Cairo contract.
/// @param calls The array of CairoCall structs to be called.
/// @param calls The array of CairoCall structs to be executed.
function multicallCairo(CairoCall[] memory calls) internal {
uint256 n_calls = calls.length;
bytes memory callData = abi.encode(n_calls);
Expand All @@ -108,10 +108,10 @@ library CairoLib {
require(success, "CairoLib: multicallCairo failed");
}

/// @notice Performs a multicall to a Cairo contract deployed on Starknet.
/// @notice Performs a multicall to Cairo contracts deployed on Starknet.
/// @dev Used with intent to read the state of the Cairo contract.
/// @dev **This can still mutate the underlying Cairo contract state.**
/// @param calls The array of CairoCall structs to be called.
/// @param calls The array of CairoCall structs to be executed.
function multicallCairoStatic(CairoCall[] memory calls) internal view {
uint256 n_calls = calls.length;
bytes memory callData = abi.encode(n_calls);
Expand Down

0 comments on commit 7be2de1

Please sign in to comment.