eth-revert-reason icon indicating copy to clipboard operation
eth-revert-reason copied to clipboard

Inconsistent 'Unable to decode revert reason.'

Open ccolorado opened this issue 5 years ago • 2 comments

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?

ccolorado avatar Oct 28 '20 09:10 ccolorado

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?

andyflury avatar Jan 12 '21 09:01 andyflury

seems useless if one cannot instantly verify if the transaction was reverted or not, no?

wei3erHase avatar Oct 13 '21 13:10 wei3erHase