@0x/contracts-staking: Import randomAddress() instead of defining our own.
This commit is contained in:
committed by
Lawrence Forman
parent
2bb9b9a8f7
commit
2eff213840
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user