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

feat: change default script and predicate program generated at init #5720

Merged
merged 3 commits into from Mar 12, 2024

Conversation

kayagokalp
Copy link
Member

Description

Changes default predicate to:

predicate;

fn main() -> bool {
    true
}

and default script to:

script;

use std::logging::log;

configurable {
    SECRET_NUMBER: u64 = 0
}

fn main() -> u64 {
    log(SECRET_NUMBER);
    return SECRET_NUMBER;
}

@kayagokalp kayagokalp self-assigned this Mar 11, 2024
@kayagokalp kayagokalp added enhancement New feature or request forc labels Mar 11, 2024
@kayagokalp kayagokalp requested a review from a team March 11, 2024 20:20
@calldelegation
Copy link
Contributor

calldelegation commented Mar 11, 2024

Thank you @kayagokalp 🙏!

Before the defaults were predicates returning false and script simply being empty which means you can't make any meaningful example templated testing assertions to them. These new examples are for the new templates for scripts and predicates
#5238

@kayagokalp kayagokalp enabled auto-merge (squash) March 12, 2024 19:44
@kayagokalp kayagokalp merged commit 441413a into master Mar 12, 2024
34 checks passed
@kayagokalp kayagokalp deleted the kayagokalp/default-script-predicate branch March 12, 2024 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request forc
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants