I am using web3py to make a transaction. But I am getting validation error:
{'message': 'VM Exception while processing transaction: revert Need operator approval for 3rd party transfers.', 'code': -32000, 'data': {'stack': 'RuntimeError: VM Exception while processing transaction: revert Need operator approval for 3rd party transfers.\n at Function.RuntimeError.fromResults (/Applications/Ganache.app/Contents/Resources/static/node/node_modules/ganache-core/lib/utils/runtimeerror.js:89:13)\n at module.exports (/Applications/Ganache.app/Contents/Resources/static/node/node_modules/ganache-core/lib/utils/gas/guestimation.js:142:32)', 'name': 'RuntimeError'}}
Can someone please help me understand this error? Why is it happening? I am using function safeTransferFrom (from ERC1155)
Thank you.