Contract Init Arguments
Parser now support extraction of arguments for contract initializer:
const code = `
pub contract Hello{
init(a: String, b: Int) {
log(a)
log(b)
}
}
`
const params = await extractContractParameters(code);
/* params now contains object
{
contractName: "Hello",
args: "a: String, b: Int"
}
*/