flow-js-testing icon indicating copy to clipboard operation
flow-js-testing copied to clipboard

Unable to deploy contracts having multiple-line `init` params

Open SnowyField1906 opened this issue 1 year ago • 0 comments

Problem

when deploying contracts which have init params with deployContract or deployContractByName it will throws Error: Type Error: type is not a string if the params are multiple-line like this:

init(
   a: Int,
   b: Int
 )

but it still works with single-line params like this:

init(a: Int, b: Int)

SnowyField1906 avatar Jul 27 '23 22:07 SnowyField1906