We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8b85e81 + 5d67063 commit d78182cCopy full SHA for d78182c
2 files changed
src/endpoints/get_tasks.rs
@@ -24,11 +24,6 @@ pub struct UserTask {
24
desc: String,
25
completed: bool,
26
quiz_name: Option<i64>,
27
- // Add the missing fields
28
- calls: Option<Vec<String>>,
29
- contracts: Option<Vec<String>>,
30
- api_url: Option<String>,
31
- regex: Option<String>,
32
}
33
34
#[derive(Deserialize)]
src/endpoints/quests/verify_contract.rs
@@ -56,7 +56,7 @@ pub async fn handler(
56
.call_data
57
.iter()
58
.map(|s| {
59
- let replaced_calldata = parse_string(s, FieldElement::from_hex_be(s).unwrap());
+ let replaced_calldata = parse_string(s, query.addr);
60
FieldElement::from_hex_be(&replaced_calldata)
61
})
62
.collect::<Result<Vec<FieldElement>, _>>()
0 commit comments