Closed danielwpz closed 2 years ago
It's passed as an object. When we are passing parameters with brackets they are passed as an object.
const someString = 'yo';
someFunc(someString); <- passed as a string
someFunc({ someString }); <- passed as an object, transformed to "{"someString": "yo"}"
Other parameters in this type are optional, so it's ok. But you can make a PR that will have more self explanatory code, thanks :)
@danielwpz It hasn't been published yet, but you can assign a string to attachedDeposit
, see https://github.com/near/workspaces-js/pull/99
hey, I found the example writes:
however the attachedDeposit cannot be a string, it has to be a NEAR parsed object.
https://github.com/near/workspaces-js/blob/main/__tests__/03.single-use-access-keys-with-linkdrop.ava.ts#L42
Is this a typo? If so I can help fix the example