Skip to content

Commit 13980c6

Browse files
committed
chore: fmt
1 parent 4cc7209 commit 13980c6

File tree

4 files changed

+10
-5
lines changed

4 files changed

+10
-5
lines changed

snforge_std/src/cheatcodes/tx_info.cairo

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ fn spoof(target: CheatTarget, tx_info_mock: TxInfoMock, span: CheatSpan) {
6666
handle_cheatcode(cheatcode::<'spoof'>(inputs.span()));
6767
}
6868

69-
/// Changes `TxInfo` returned by `get_tx_info()` for the targeted contract until the spoof is canceled with `stop_spoof`.
69+
/// Changes `TxInfo` returned by `get_tx_info()` for the targeted contract until the spoof is
70+
/// canceled with `stop_spoof`.
7071
/// - `target` - instance of `CheatTarget` specifying which contracts to spoof
7172
/// - `tx_info_mock` - a struct with same structure as `TxInfo` (returned by `get_tx_info()`)
7273
fn start_spoof(target: CheatTarget, tx_info_mock: TxInfoMock) {

snforge_std/src/fs/file_operations.cairo

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ fn read_txt(file: @File) -> Array<felt252> {
3333
}
3434

3535
/// `file` - a `File` struct to read json data from
36-
/// Returns an array of felts read from the file, panics if read was not possible, or json was incorrect
36+
/// Returns an array of felts read from the file, panics if read was not possible, or json was
37+
/// incorrect
3738
fn read_json(file: @File) -> Array<felt252> {
3839
let content = handle_cheatcode(
3940
cheatcode::<'read_json'>(byte_array_as_felt_array(file.path).span())

snforge_std/src/signature.cairo

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,16 @@ trait KeyPairTrait<SK, PK> {
2020
trait SignerTrait<T, H, U> {
2121
/// Signs given message hash
2222
/// `self` - KeyPair used for signing
23-
/// `message_hash` - input to sign bounded by the curve type (u256 for 256bit curves, felt252 for StarkCurve)
23+
/// `message_hash` - input to sign bounded by the curve type (u256 for 256bit curves, felt252
24+
/// for StarkCurve)
2425
/// Returns the signature components (usually r,s tuple)
2526
fn sign(self: T, message_hash: H) -> U;
2627
}
2728

2829
trait VerifierTrait<T, H, U> {
2930
/// `self` - KeyPair used for verifying
30-
/// `message_hash` - input to verify bounded by the curve type (u256 for 256bit curves, felt252 for StarkCurve)
31+
/// `message_hash` - input to verify bounded by the curve type (u256 for 256bit curves, felt252
32+
/// for StarkCurve)
3133
/// `signature` - the signature components (usually r,s tuple)
3234
/// Returns a boolean representing the validity of the signature
3335
fn verify(self: T, message_hash: H, signature: U) -> bool;

snforge_std/src/trace.cairo

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ use core::starknet::testing::cheatcode;
33
use core::starknet::ContractAddress;
44
use super::_cheatcode::handle_cheatcode;
55

6-
/// Tree-like structure which contains all of the starknet calls and sub-calls along with the results
6+
/// Tree-like structure which contains all of the starknet calls and sub-calls along with the
7+
/// results
78
#[derive(Drop, Serde, PartialEq)]
89
struct CallTrace {
910
entry_point: CallEntryPoint,

0 commit comments

Comments
 (0)