@0x/utils
: Add docstring for raw
constructor parameter in RevertError
.
`@0x/utils`: Use `...is.instanceof()` pattern in `RevertError` tests.
This commit is contained in:
@@ -146,7 +146,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, true);
|
||||
expect(decoded instanceof RawRevertError).to.be.true();
|
||||
expect(decoded).is.instanceof(RawRevertError);
|
||||
});
|
||||
it('should fail to decode a malformed ABI encoded revert error', () => {
|
||||
const _encoded = encoded.substr(0, encoded.length - 1);
|
||||
|
Reference in New Issue
Block a user