diff --git a/onchain/src/lib.cairo b/onchain/src/lib.cairo index f46c88f7..fd02b976 100644 --- a/onchain/src/lib.cairo +++ b/onchain/src/lib.cairo @@ -59,7 +59,11 @@ mod ArtPeace { #[constructor] fn constructor( - ref self: ContractState, canvas_width: u128, canvas_height: u128, time_between_pixels: u64, color_count: u8, + ref self: ContractState, + canvas_width: u128, + canvas_height: u128, + time_between_pixels: u64, + color_count: u8, ) { self.canvas_width.write(canvas_width); self.canvas_height.write(canvas_height); diff --git a/onchain/src/tests/art_peace.cairo b/onchain/src/tests/art_peace.cairo index 31f96e99..50543106 100644 --- a/onchain/src/tests/art_peace.cairo +++ b/onchain/src/tests/art_peace.cairo @@ -11,7 +11,9 @@ const COLOR_COUNT: u8 = 12; fn deploy_contract() -> ContractAddress { let contract = snf::declare("ArtPeace"); - let calldata: Array = array![WIDTH.into(), HEIGHT.into(), TIME_BETWEEN_PIXELS.into(), COLOR_COUNT.into()]; + let calldata: Array = array![ + WIDTH.into(), HEIGHT.into(), TIME_BETWEEN_PIXELS.into(), COLOR_COUNT.into() + ]; let contract_addr = contract.deploy(@calldata).unwrap(); snf::start_warp(CheatTarget::One(contract_addr), TIME_BETWEEN_PIXELS); contract_addr