uint256 adminTokenBalance = balanceOf(owner(), tokenId);
    require(adminTokenBalance > 0, "Admin does not hold expired token");

    _transfer(owner(), msg.sender, tokenId, adminTokenBalance, "");

issue in require() Wrong argument count for function call: 2 arguments given but expected 1.(6160)

1 Answer 1


It's hard to be sure without actual compiler output, but the "reason" parameter has not always existed in require(). Are you using a very old compiler version?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.