Skip to content

Conversation

@niklabh
Copy link
Collaborator

@niklabh niklabh commented Apr 3, 2023

E2E tests for marketplace contract

@niklabh niklabh changed the title [Draft] E2E tests E2E tests for marketplace contract May 8, 2023
pallet_marketplace = { path = "../../logics", default-features = false }

[dev-dependencies]
ink_e2e = "4.0.1"
Copy link
Member

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

Copy link
Member

@Maar-io Maar-io left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove Lottery

#[ink_e2e::test]
async fn default_works(mut client: ink_e2e::Client<C, E>) -> E2EResult<()> {
// Given
let constructor = LotteryRef::default();
Copy link
Member

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?

}
}

/// end-to-end (E2E) or integration tests for lottery.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lottery?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants