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

Add #[external_contract] macro #288

Closed
kpob opened this issue Dec 11, 2023 · 0 comments · Fixed by #292
Closed

Add #[external_contract] macro #288

kpob opened this issue Dec 11, 2023 · 0 comments · Fixed by #292
Assignees

Comments

@kpob
Copy link
Contributor

kpob commented Dec 11, 2023

Allow defining an external contract.

#[odra::external_contract]
trait Transferable {
   fn transfer(&self, address: Address, value: U256);
}

Should generate a Ref (to use in contract context)

@zie1ony zie1ony moved this from 🆕 New to 🔖 Ready in ⚔️Tavern 🐉 Dec 11, 2023
@kpob kpob linked a pull request Dec 12, 2023 that will close this issue
@kpob kpob closed this as completed in #292 Dec 13, 2023
@kpob kpob moved this from 🔖 Ready to ✅ Done in ⚔️Tavern 🐉 Jan 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: ✅ Done
Development

Successfully merging a pull request may close this issue.

1 participant