I have started using buidler for testing/compiling my contracts. In one test i have setup a scenario that a owner attempts to transfer a token to another wallet address.
My contract is inheriting from the Open Zeppelin ERC721.sol one. When trying to call token.safeTransferFrom(args)
it says that safeTransferFrom
is not a a function and when logging it out it shows as undefined
.
Im pretty new to solidity and smart contract coding but looking through the source I can see that the function declaration looks the same as approve
which I can call quite happily using token.approve(args)
.
Is there anything obvious that Im missing?
safeTransferFrom
function in the contract ABI?