Remove TestValidatorWallet DataType
This commit is contained in:
@@ -47,7 +47,6 @@ import {
|
||||
ExchangeWrapper,
|
||||
TestValidatorWalletContract,
|
||||
ValidatorWalletAction,
|
||||
ValidatorWalletDataType,
|
||||
} from '../src';
|
||||
|
||||
import { FillOrderWrapper } from './assertion_wrappers/fill_order_wrapper';
|
||||
@@ -267,7 +266,6 @@ blockchainTests.resets('Exchange core', () => {
|
||||
// Allow the signature check for the first fill.
|
||||
await validatorWallet.prepare.awaitTransactionSuccessAsync(
|
||||
orderHashHex,
|
||||
ValidatorWalletDataType.Order,
|
||||
ValidatorWalletAction.Accept,
|
||||
constants.NULL_BYTES,
|
||||
);
|
||||
@@ -276,7 +274,6 @@ blockchainTests.resets('Exchange core', () => {
|
||||
// Reject the signature check for the second fill.
|
||||
await validatorWallet.prepare.awaitTransactionSuccessAsync(
|
||||
orderHashHex,
|
||||
ValidatorWalletDataType.Order,
|
||||
ValidatorWalletAction.Reject,
|
||||
constants.NULL_BYTES,
|
||||
);
|
||||
@@ -300,7 +297,6 @@ blockchainTests.resets('Exchange core', () => {
|
||||
// Allow the signature check for the first fill.
|
||||
await validatorWallet.prepare.awaitTransactionSuccessAsync(
|
||||
orderHashHex,
|
||||
ValidatorWalletDataType.Order,
|
||||
ValidatorWalletAction.Accept,
|
||||
constants.NULL_BYTES,
|
||||
);
|
||||
@@ -309,7 +305,6 @@ blockchainTests.resets('Exchange core', () => {
|
||||
// Reject the signature check for the second fill.
|
||||
await validatorWallet.prepare.awaitTransactionSuccessAsync(
|
||||
orderHashHex,
|
||||
ValidatorWalletDataType.Order,
|
||||
ValidatorWalletAction.Reject,
|
||||
constants.NULL_BYTES,
|
||||
);
|
||||
@@ -333,7 +328,6 @@ blockchainTests.resets('Exchange core', () => {
|
||||
// Allow the signature check for the first fill.
|
||||
await validatorWallet.prepare.awaitTransactionSuccessAsync(
|
||||
orderHashHex,
|
||||
ValidatorWalletDataType.Order,
|
||||
ValidatorWalletAction.Accept,
|
||||
constants.NULL_BYTES,
|
||||
);
|
||||
@@ -342,7 +336,6 @@ blockchainTests.resets('Exchange core', () => {
|
||||
// Reject the signature check for the second fill.
|
||||
await validatorWallet.prepare.awaitTransactionSuccessAsync(
|
||||
orderHashHex,
|
||||
ValidatorWalletDataType.Order,
|
||||
ValidatorWalletAction.Reject,
|
||||
constants.NULL_BYTES,
|
||||
);
|
||||
|
@@ -29,7 +29,7 @@ import {
|
||||
TestValidatorWalletContract,
|
||||
} from '../src';
|
||||
|
||||
import { ValidatorWalletAction, ValidatorWalletDataType } from './utils';
|
||||
import { ValidatorWalletAction } from './utils';
|
||||
|
||||
// tslint:disable:no-unnecessary-type-assertion
|
||||
blockchainTests.resets('MixinSignatureValidator', env => {
|
||||
@@ -333,7 +333,6 @@ blockchainTests.resets('MixinSignatureValidator', env => {
|
||||
if (validatorAction !== undefined) {
|
||||
await validatorWallet.prepare.awaitTransactionSuccessAsync(
|
||||
_hashHex,
|
||||
ValidatorWalletDataType.None,
|
||||
validatorAction,
|
||||
expectedSignatureHashHex,
|
||||
);
|
||||
@@ -458,7 +457,6 @@ blockchainTests.resets('MixinSignatureValidator', env => {
|
||||
if (validatorAction !== undefined) {
|
||||
await validatorWallet.prepare.awaitTransactionSuccessAsync(
|
||||
orderHashHex,
|
||||
ValidatorWalletDataType.Order,
|
||||
validatorAction,
|
||||
expectedSignatureHashHex,
|
||||
);
|
||||
@@ -755,7 +753,6 @@ blockchainTests.resets('MixinSignatureValidator', env => {
|
||||
if (validatorAction !== undefined) {
|
||||
await validatorWallet.prepare.awaitTransactionSuccessAsync(
|
||||
transactionHashHex,
|
||||
ValidatorWalletDataType.ZeroExTransaction,
|
||||
validatorAction,
|
||||
expectedSignatureHashHex,
|
||||
);
|
||||
|
@@ -40,10 +40,3 @@ export enum ValidatorWalletAction {
|
||||
ReturnNothing = 6,
|
||||
NTypes = 7,
|
||||
}
|
||||
|
||||
export enum ValidatorWalletDataType {
|
||||
None = 0,
|
||||
Order = 1,
|
||||
ZeroExTransaction = 2,
|
||||
NTypes = 3,
|
||||
}
|
||||
|
Reference in New Issue
Block a user