Skip to content

ERC721: transfer caller is not owner nor approved -- Potential issue with vm.prank? #2291

Answered by omeguhh
omeguhh asked this question in Help
Discussion options

You must be logged in to vote

Figured it out. Had to add

vm.startPrank(owner);
dpGenOne.setApprovalForAll(address(depositor), true);

In the test function. All good, thanks!

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by onbjerg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
1 participant