I would like to write an
external view function that throws when being executed on-chain, but does not throw when executing client-side. (for example when it is called through web3.js)
Is there a way to do this?
Ethereum Stack Exchange is a question and answer site for users of Ethereum, the decentralized application platform and smart contract enabled blockchain. It only takes a minute to sign up.Sign up to join this community