Support for testing transactions with optional array of Addresses as a parameter
bymi15 opened this issue · 4 comments
bymi15 commented
Issue To Be Solved
Testing transactions with an optional array of Addresses as a parameter results in the following error:
thrown: "[Address]? is not supported"
Context
Example use cases of this type of parameter could be to pass in an allowlist, which can be optional as a nil value would represent the absence of an allowlist and hence allow everyone/anyone.
Discord discussion thread:
https://discord.com/channels/613813861610684416/1004469080268492950
jribbink commented
This is a https://github.com/onflow/flow-cadut issue. Linked issue is onflow/flow-cadut#112
jribbink commented
Alright PR is in onflow/flow-cadut#113, awaiting approval, release. Then needs dependency update on @onflow/flow-js-testing
jribbink commented
Should be solved in latest alpha. Cheers.