Skip to content

Commit d78182c

Browse files
authored
Merge pull request #377 from lfglabs-dev/fix/removing-unused-fields-with-wrong-types
fix: removing unused fields with wrong types
2 parents 8b85e81 + 5d67063 commit d78182c

2 files changed

Lines changed: 1 addition & 6 deletions

File tree

src/endpoints/get_tasks.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,6 @@ pub struct UserTask {
2424
desc: String,
2525
completed: bool,
2626
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>,
3227
}
3328

3429
#[derive(Deserialize)]

src/endpoints/quests/verify_contract.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ pub async fn handler(
5656
.call_data
5757
.iter()
5858
.map(|s| {
59-
let replaced_calldata = parse_string(s, FieldElement::from_hex_be(s).unwrap());
59+
let replaced_calldata = parse_string(s, query.addr);
6060
FieldElement::from_hex_be(&replaced_calldata)
6161
})
6262
.collect::<Result<Vec<FieldElement>, _>>()

0 commit comments

Comments
 (0)