@0x/contracts-staking: Import randomAddress() instead of defining our own.

This commit is contained in:
Lawrence Forman
2019-09-19 06:17:49 -04:00
committed by Lawrence Forman
parent 2bb9b9a8f7
commit 2eff213840

View File

@@ -7,6 +7,7 @@ import {
hexRandom,
hexSlice,
Numberish,
randomAddress,
} from '@0x/contracts-test-utils';
import { BigNumber } from '@0x/utils';
import { LogEntry } from 'ethereum-types';
@@ -230,10 +231,6 @@ blockchainTests.resets('delegator unit rewards', env => {
};
}
function randomAddress(): string {
return hexRandom(constants.ADDRESS_LENGTH);
}
function computeDelegatorRewards(
totalRewards: Numberish,
delegatorStake: Numberish,