@0x/utils: Make decoding of unknown selectors to RawRevertError optional.

This commit is contained in:
Lawrence Forman
2019-08-28 00:10:20 -04:00
committed by Lawrence Forman
parent f71484c9f0
commit 0542c70d22
3 changed files with 15 additions and 9 deletions

View File

@@ -150,7 +150,7 @@ describe('RevertError', () => {
});
it('should decode an unknown selector as a `RawRevertError`', () => {
const _encoded = encoded.substr(0, 2) + '00' + encoded.substr(4);
const decoded = RevertError.decode(_encoded);
const decoded = RevertError.decode(_encoded, true);
expect(decoded instanceof RawRevertError).to.be.true();
});
it('should fail to decode a malformed ABI encoded revert error', () => {