@0x:contracts-utils Added RichErrors to ReentrancyGuard
This commit is contained in:
committed by
Amir Bandeali
parent
da38285046
commit
f937a0b038
@@ -1,10 +1,4 @@
|
||||
import {
|
||||
addressUtils,
|
||||
chaiSetup,
|
||||
provider,
|
||||
txDefaults,
|
||||
web3Wrapper,
|
||||
} from '@0x/contracts-test-utils';
|
||||
import { addressUtils, chaiSetup, provider, txDefaults, web3Wrapper } from '@0x/contracts-test-utils';
|
||||
import { BlockchainLifecycle } from '@0x/dev-utils';
|
||||
import { BigNumber, LibAddressArrayRevertErrors } from '@0x/utils';
|
||||
import * as chai from 'chai';
|
||||
|
||||
@@ -630,7 +630,7 @@ describe('LibBytes', () => {
|
||||
const expectedError = new LibBytesRevertErrors.InvalidByteOperationError(
|
||||
LibBytesRevertErrors.InvalidByteOperationErrorCodes.LengthGreaterThanOrEqualsNestedBytesLengthRequired,
|
||||
byteLen,
|
||||
(new BigNumber(testBytes32)).plus(32),
|
||||
new BigNumber(testBytes32).plus(32),
|
||||
);
|
||||
return expect(libBytes.publicReadBytesWithLength.callAsync(testBytes32, offset)).to.revertWith(
|
||||
expectedError,
|
||||
|
||||
Reference in New Issue
Block a user