onflow/flow-js-testing

Support for testing transactions with optional array of Addresses as a parameter

bymi15 opened this issue · 4 comments

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

Alright PR is in onflow/flow-cadut#113, awaiting approval, release. Then needs dependency update on @onflow/flow-js-testing

Thanks a lot for your work @jribbink

Should be solved in latest alpha. Cheers.