eth-revert-reason
eth-revert-reason copied to clipboard
Inconsistent 'Unable to decode revert reason.'
Trying to get the revert reason immediately after a revert inconsistently returns 'Unable to decode revert reason.'
Is there a way to adequately handle these cases?
Experiencing the same issue. I tried it using the following code:
const getRevertReason = require('eth-revert-reason')
async function reason() {
var logContents = await getRevertReason('0xf212cc42d0eded75041225d71da6c3a8348bdb9102f2b73434b480419d31d69a');
console.log(logContents);
}
reason();
Any ideas?
seems useless if one cannot instantly verify if the transaction was reverted or not, no?