refactor: externalise function to get coefficients

This commit is contained in:
0xalivecow 2024-10-20 20:55:23 +02:00
parent 963239903e
commit 24611a2357
No known key found for this signature in database
3 changed files with 24 additions and 25 deletions

View file

@ -33,7 +33,7 @@ pub fn task_deploy(testcase: &Testcase) -> Result<Value> {
}
"block2poly" => {
let result: Vec<u8> = block2poly(args)?;
let json = json!({"block" : result});
let json = json!({"coefficients" : result});
Ok(json)
}
_ => Err(anyhow!("Fatal. No compatible action found")),