Skip to content

Commit 61a7b1d

Browse files
committed
nuking useless comments
1 parent aad5a45 commit 61a7b1d

File tree

1 file changed

+0
-9
lines changed
  • noir-projects/noir-contracts/contracts/app/orderbook_contract/src/test

1 file changed

+0
-9
lines changed

noir-projects/noir-contracts/contracts/app/orderbook_contract/src/test/test.nr

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ use aztec::{
1111
use token::Token;
1212
use uint_note::uint_note::PartialUintNote;
1313

14-
// Happy path tests
15-
1614
#[test]
1715
unconstrained fn create_order_happy_path() {
1816
let (mut env, orderbook_address, token0_address, token1_address, owner, _) =
@@ -133,8 +131,6 @@ unconstrained fn full_flow() {
133131
assert_eq(is_fulfilled, true);
134132
}
135133

136-
// Unhappy path tests for create_order
137-
138134
#[test(should_fail_with = "ZERO_BID_AMOUNT")]
139135
unconstrained fn create_order_zero_bid_amount() {
140136
let (mut env, orderbook_address, token0_address, token1_address, owner, _) =
@@ -144,7 +140,6 @@ unconstrained fn create_order_zero_bid_amount() {
144140
let ask_amount = 2000 as u128;
145141
let authwit_nonce = 1;
146142

147-
// This should fail when creating the order due to zero bid amount
148143
let _order_id = env.call_private(
149144
owner,
150145
Orderbook::at(orderbook_address).create_order(
@@ -166,7 +161,6 @@ unconstrained fn create_order_zero_ask_amount() {
166161
let ask_amount = 0 as u128;
167162
let authwit_nonce = 1;
168163

169-
// This should fail when creating the order due to zero ask amount
170164
let _order_id = env.call_private(
171165
owner,
172166
Orderbook::at(orderbook_address).create_order(
@@ -189,7 +183,6 @@ unconstrained fn create_order_invalid_bid_token() {
189183
let ask_amount = 2000 as u128;
190184
let authwit_nonce = 1;
191185

192-
// This should fail due to invalid bid token
193186
let _order_id = env.call_private(
194187
owner,
195188
Orderbook::at(orderbook_address).create_order(
@@ -212,7 +205,6 @@ unconstrained fn create_order_invalid_ask_token() {
212205
let ask_amount = 2000 as u128;
213206
let authwit_nonce = 1;
214207

215-
// This should fail due to invalid ask token
216208
let _order_id = env.call_private(
217209
owner,
218210
Orderbook::at(orderbook_address).create_order(
@@ -234,7 +226,6 @@ unconstrained fn create_order_same_tokens() {
234226
let ask_amount = 2000 as u128;
235227
let authwit_nonce = 1;
236228

237-
// This should fail due to same bid and ask tokens
238229
let _order_id = env.call_private(
239230
owner,
240231
Orderbook::at(orderbook_address).create_order(

0 commit comments

Comments
 (0)