-
Notifications
You must be signed in to change notification settings - Fork 8
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
E2E tests for marketplace contract #16
base: main
Are you sure you want to change the base?
Conversation
@@ -11,6 +11,9 @@ scale-info = { version = "2.3", default-features = false, features = ["derive"], | |||
openbrush = { tag = "3.0.0", git = "https://github.com/727-Ventures/openbrush-contracts", default-features = false, features = ["ownable", "psp34", "reentrancy_guard"] } | |||
pallet_marketplace = { path = "../../logics", default-features = false } | |||
|
|||
[dev-dependencies] | |||
ink_e2e = "4.0.1" |
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.
Since you are updating this contract, please use the latest ink. I think it is 4.2
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.
remove Lottery
contracts/marketplace/lib.rs
Outdated
#[ink_e2e::test] | ||
async fn default_works(mut client: ink_e2e::Client<C, E>) -> E2EResult<()> { | ||
// Given | ||
let constructor = LotteryRef::default(); |
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.
I'm not following... What has Lottery to do with this marketplace and from where do you get the LotteryRef?
contracts/marketplace/lib.rs
Outdated
@@ -331,4 +331,105 @@ pub mod marketplace { | |||
AccountId::from([0x2; 32]) | |||
} | |||
} | |||
|
|||
/// end-to-end (E2E) or integration tests for lottery. |
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.
lottery?
E2E tests for marketplace contract