So I am building a new contract and trying to test the transfer function, but I continually get an error in my console log in:
let result = await Moralis.transfer(options);
This is the console in the browser at the moment:
options in transfer()
1. {type: 'erc1155', receiver: '<receiver_address>', contractAddress: '<contract_address>', tokenId: 0, amount: 2}
1. amount: 2
2. contractAddress: '<contract_address'
3. receiver: '<receiver_address>'
4. tokenId: 0
5. type: "erc1155"
6. [[Prototype]]: Object
Uncaught (in promise) ['tokenId is required'] transfer @ transfer.js:33
The tokenId is typed as in the docs and tutorial on YT, and itās being logged correctly from the IDE in the frontend. What is the issue here? Does 0 not function as a tokenId? Filip used tokenId = 1 in the tutorial so he didnāt hit this wall.