UNPKG

elliptic-solidity

Version:

Elliptic curve implementation in solidity; includes secp256r1

11 lines (10 loc) 289 B
// By openZeppelin module.exports = async (promise) => { try { await promise; assert.fail('Expected revert not received'); } catch (error) { const revertFound = error.message.search('revert') >= 0; assert(revertFound, `Expected "revert", got ${error} instead`); } };