refactor: externalise function to get coefficients
This commit is contained in:
parent
963239903e
commit
24611a2357
3 changed files with 24 additions and 25 deletions
|
|
@ -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")),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue