0
    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

0

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 that you have read and understand our privacy policy and code of conduct.

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