Skip to content
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

Explain use of messages #102

Closed
ethanfrey opened this issue Apr 28, 2023 · 1 comment
Closed

Explain use of messages #102

ethanfrey opened this issue Apr 28, 2023 · 1 comment
Assignees
Milestone

Comments

@ethanfrey
Copy link
Member

Also that the trait name must be camel case of the package it is in.
We must import the package into the namespace of the contract using it.

Also why we need

#[contract(error=ContractError)]
#[messages(vault_api as VaultApi)]
impl VaultContract<'_> {
}
@hashedone hashedone added this to the 0.4 milestone Apr 28, 2023
@hashedone
Copy link
Collaborator

Improved README already fixes this

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

No branches or pull requests

2 participants