I have used require function as:
require(owner == msg.sender, "Sender must be owner");
But in the remix console I got,
transact to Contract.setAdmin errored: [object Object]
What should I do to get proper error message? Also the same contract, using metamask is successfully deployed on Rinkeby. Is it the matter of traffic on that testnet?
require
statement in your code. – goodvibration Oct 29 '20 at 11:47