Skip to content

Commit

Permalink
Use the correct prompt in usage example
Browse files Browse the repository at this point in the history
  • Loading branch information
Sliman4 committed Dec 26, 2024
1 parent 7dfbcee commit 9ac067b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crates/example-consumer/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ impl Contract {
}

pub fn test_statement(&self, statement: String) -> Promise {
// let prompt = format!("Your job is to determine if the following statement is true:\n\n```\n{statement}\n```\n\nRespond with only \"Yes\" or \"No\"");
let prompt = statement;
let prompt = format!("Your job is to determine if the following statement is true:\n\n```\n{statement}\n```\n\nRespond with only \"Yes\" or \"No\"");
ext_oracle_consumer::ext(self.oracle_contract.clone())
.with_static_gas(Gas::from_tgas(10))
.with_attached_deposit(NearToken::from_millinear(10)) // attach 0.01N fee
Expand Down

0 comments on commit 9ac067b

Please sign in to comment.