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

Updated templates for new cargo odra version #277

Merged
merged 3 commits into from
Dec 7, 2023

Conversation

kubaplas
Copy link
Contributor

@kubaplas kubaplas commented Dec 5, 2023

No description provided.

templates/blank/bin/build_schema.rs Show resolved Hide resolved
templates/blank/bin/build_contract.rs Show resolved Hide resolved
templates/full/bin/build_schema.rs Show resolved Hide resolved

/// A module definition. Each module struct consists Variables and Mappings
/// or/and another modules.
#[odra::module]
pub struct Flipper {
/// The module itself does not store the value,
env: Rc<ContractEnv>,
Copy link
Contributor

Choose a reason for hiding this comment

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

Soon will be autogenerated

Suggested change
env: Rc<ContractEnv>,


/// A #module_name module storage definition.
#[odra::module]
pub struct #module_name {
env: Rc<ContractEnv>,
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
env: Rc<ContractEnv>,

@kubaplas kubaplas force-pushed the feature/templates-for-new-cargo-odra branch 2 times, most recently from 14beff4 to 1a961f1 Compare December 7, 2023 10:21
@kubaplas kubaplas force-pushed the feature/templates-for-new-cargo-odra branch from 1a961f1 to bba9bde Compare December 7, 2023 10:25
@kubaplas kubaplas merged commit d440682 into release/0.8.0 Dec 7, 2023
1 check passed
@kubaplas kubaplas deleted the feature/templates-for-new-cargo-odra branch December 7, 2023 10:47
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