-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(test): migrate unit tests to the new motsu layout #423
base: main
Are you sure you want to change the base?
Changes from 28 commits
64cb1ec
e2fafe8
02d3468
d126f0e
ef905e5
7883a64
f49daf5
1dc7519
092a370
e5028fc
c03429d
0c5ac77
924e72e
59cc1a2
110d340
aa577f2
01401e8
0cd4299
2b944ce
0aaa81e
b920606
33454f6
299ecc4
acc631f
4a747f1
73c5792
abfbbb9
f4a74c5
2b688ce
ddef560
1d27f6c
c3cc640
e0e71ba
b24bcdf
0f40dc4
3c909bf
1acaa4c
fa476f1
1078a12
a9c3fbe
94cb034
06945d6
3a6e6bd
d33bdc3
a580f98
eb5cc95
378da95
e7d074f
c255a90
f8b7645
0f2a246
a5d40c1
843ded7
f27aed9
f0f94ac
32ad8fd
0b31370
74b4672
b6898fc
a16de97
acd843a
47a3aa3
9a84c14
ed41209
780c6ec
1487ee0
4c3366a
297b574
267289c
6f71be6
425cf63
0ecc2a3
7ee9dc1
6e3bf2b
c302a60
4b135dd
c455196
0ac0b28
e8fd4aa
2d29ce0
7b39a37
5c0ef1a
f6c71b5
00b1fce
2b042a7
1aba40b
eedad10
75176c3
09944a7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,8 +28,6 @@ default-members = [ | |
"contracts", | ||
"contracts-proc", | ||
"lib/crypto", | ||
"lib/motsu", | ||
"lib/motsu-proc", | ||
"lib/e2e-proc", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Once we are removing |
||
"examples/erc20", | ||
"examples/erc20-permit", | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -323,7 +323,7 @@ impl Erc721Enumerable { | |
} | ||
} | ||
} | ||
|
||
/* | ||
#[cfg(all(test, feature = "std"))] | ||
mod tests { | ||
use alloy_primitives::{address, uint, Address, U256}; | ||
|
@@ -454,7 +454,7 @@ mod tests { | |
assert_eq!(owner, alice); | ||
|
||
let res = | ||
contract._add_token_to_owner_enumeration(alice, token_id, &erc721); | ||
contract._add_token_to_owner_enumeration(alice, token_id, &*erc721); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why do we need additional |
||
assert!(res.is_ok()); | ||
|
||
let test_token_id = contract | ||
|
@@ -483,7 +483,7 @@ mod tests { | |
assert_eq!(owner, alice); | ||
|
||
let res = | ||
contract._add_token_to_owner_enumeration(alice, token_id, &erc721); | ||
contract._add_token_to_owner_enumeration(alice, token_id, &*erc721); | ||
assert!(res.is_ok()); | ||
|
||
let err = | ||
|
@@ -525,7 +525,7 @@ mod tests { | |
assert_eq!(owner, alice); | ||
|
||
let res = | ||
contract._add_token_to_owner_enumeration(alice, token_id, &erc721); | ||
contract._add_token_to_owner_enumeration(alice, token_id, &*erc721); | ||
assert!(res.is_ok()); | ||
|
||
// Transfer the token from ALICE to BOB. | ||
|
@@ -538,11 +538,11 @@ mod tests { | |
assert_eq!(owner, BOB); | ||
|
||
let res = contract | ||
._remove_token_from_owner_enumeration(alice, token_id, &erc721); | ||
._remove_token_from_owner_enumeration(alice, token_id, &*erc721); | ||
assert!(res.is_ok()); | ||
|
||
let res = | ||
contract._add_token_to_owner_enumeration(BOB, token_id, &erc721); | ||
contract._add_token_to_owner_enumeration(BOB, token_id, &*erc721); | ||
assert!(res.is_ok()); | ||
|
||
let test_token_id = contract | ||
|
@@ -563,3 +563,4 @@ mod tests { | |
assert_eq!(actual, expected); | ||
} | ||
} | ||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we want this change?