Whenever I attempt to use the {String: String} input for transactions I get this error
Error: GraphQL error: failed to decode argument 0: failed to decode value: invalid JSON Cadence structure
I brought the code down to its simplest form
transaction(metadata: {String: String}) {
prepare(acct: AuthAccount) {}
execute {
log(metadata)
}
}
And I use the simplest JSON Cadence object straight from the documentation
{"type": "Void"}
But no matter what I do I still get the same error.
I am trying to build a resource that utilizes JSON for itβs metadata, so any help here would be huge.