diff --git a/snforge_std/src/cheatcodes/tx_info.cairo b/snforge_std/src/cheatcodes/tx_info.cairo index 3bcf9ecbda..fda1a6fd5b 100644 --- a/snforge_std/src/cheatcodes/tx_info.cairo +++ b/snforge_std/src/cheatcodes/tx_info.cairo @@ -66,7 +66,8 @@ fn spoof(target: CheatTarget, tx_info_mock: TxInfoMock, span: CheatSpan) { handle_cheatcode(cheatcode::<'spoof'>(inputs.span())); } -/// Changes `TxInfo` returned by `get_tx_info()` for the targeted contract until the spoof is canceled with `stop_spoof`. +/// Changes `TxInfo` returned by `get_tx_info()` for the targeted contract until the spoof is +/// canceled with `stop_spoof`. /// - `target` - instance of `CheatTarget` specifying which contracts to spoof /// - `tx_info_mock` - a struct with same structure as `TxInfo` (returned by `get_tx_info()`) fn start_spoof(target: CheatTarget, tx_info_mock: TxInfoMock) { diff --git a/snforge_std/src/fs/file_operations.cairo b/snforge_std/src/fs/file_operations.cairo index 62c96c163e..11725723fe 100644 --- a/snforge_std/src/fs/file_operations.cairo +++ b/snforge_std/src/fs/file_operations.cairo @@ -33,7 +33,8 @@ fn read_txt(file: @File) -> Array { } /// `file` - a `File` struct to read json data from -/// Returns an array of felts read from the file, panics if read was not possible, or json was incorrect +/// Returns an array of felts read from the file, panics if read was not possible, or json was +/// incorrect fn read_json(file: @File) -> Array { let content = handle_cheatcode( cheatcode::<'read_json'>(byte_array_as_felt_array(file.path).span()) diff --git a/snforge_std/src/signature.cairo b/snforge_std/src/signature.cairo index 68e91ab616..c45fa39f2a 100644 --- a/snforge_std/src/signature.cairo +++ b/snforge_std/src/signature.cairo @@ -20,14 +20,16 @@ trait KeyPairTrait { trait SignerTrait { /// Signs given message hash /// `self` - KeyPair used for signing - /// `message_hash` - input to sign bounded by the curve type (u256 for 256bit curves, felt252 for StarkCurve) + /// `message_hash` - input to sign bounded by the curve type (u256 for 256bit curves, felt252 + /// for StarkCurve) /// Returns the signature components (usually r,s tuple) fn sign(self: T, message_hash: H) -> U; } trait VerifierTrait { /// `self` - KeyPair used for verifying - /// `message_hash` - input to verify bounded by the curve type (u256 for 256bit curves, felt252 for StarkCurve) + /// `message_hash` - input to verify bounded by the curve type (u256 for 256bit curves, felt252 + /// for StarkCurve) /// `signature` - the signature components (usually r,s tuple) /// Returns a boolean representing the validity of the signature fn verify(self: T, message_hash: H, signature: U) -> bool; diff --git a/snforge_std/src/trace.cairo b/snforge_std/src/trace.cairo index 168d13738f..ba2f91eafa 100644 --- a/snforge_std/src/trace.cairo +++ b/snforge_std/src/trace.cairo @@ -3,7 +3,8 @@ use core::starknet::testing::cheatcode; use core::starknet::ContractAddress; use super::_cheatcode::handle_cheatcode; -/// Tree-like structure which contains all of the starknet calls and sub-calls along with the results +/// Tree-like structure which contains all of the starknet calls and sub-calls along with the +/// results #[derive(Drop, Serde, PartialEq)] struct CallTrace { entry_point: CallEntryPoint,