@@ -58,6 +58,7 @@ import {
5858} from '../../../utils/poco-tools' ;
5959import { IexecWrapper } from '../../utils/IexecWrapper' ;
6060import { loadHardhatFixtureDeployment } from '../../utils/hardhat-fixture-deployer' ;
61+ import { randomAddress } from '../../utils/utils' ;
6162
6263const teeDealTag = '0x0000000000000000000000000000000000000000000000000000000000000001' ;
6364const taskIndex = 0n ;
@@ -69,7 +70,7 @@ const appPrice = 1000n;
6970const datasetPrice = 1_000_000n ;
7071const workerpoolPrice = 1_000_000_000n ;
7172const someSignature = '0xabcd' ; // contract signatures could have arbitrary formats
72- const randomEOAAddress = ethers . Wallet . createRandom ( ) . address ;
73+ const randomEOAAddress = randomAddress ( ) ;
7374
7475let proxyAddress : string ;
7576let iexecPocoBoostInstance : IexecPocoBoostFacet ;
@@ -173,7 +174,7 @@ describe('IexecPocoBoost', function () {
173174 beneficiary : beneficiary . address ,
174175 tag : teeDealTag ,
175176 prices : ordersPrices ,
176- callback : ethers . Wallet . createRandom ( ) . address ,
177+ callback : randomAddress ( ) ,
177178 } ) ;
178179 const {
179180 appOrder,
@@ -304,7 +305,7 @@ describe('IexecPocoBoost', function () {
304305 beneficiary : beneficiary . address ,
305306 tag : teeDealTag ,
306307 prices : ordersPrices ,
307- callback : ethers . Wallet . createRandom ( ) . address ,
308+ callback : randomAddress ( ) ,
308309 } ) ;
309310 const { appOrder, datasetOrder, workerpoolOrder, requestOrder } = orders . toObject ( ) ;
310311 // Should match orders with low app order volume
@@ -1618,7 +1619,7 @@ describe('IexecPocoBoost', function () {
16181619 assets : ordersAssets ,
16191620 requester : requester . address ,
16201621 tag : teeDealTag ,
1621- callback : ethers . Wallet . createRandom ( ) . address ,
1622+ callback : randomAddress ( ) ,
16221623 } ) ;
16231624 await signOrders ( domain , orders , ordersActors ) ;
16241625 const dealId = getDealId ( domain , orders . requester , taskIndex ) ;
@@ -1971,7 +1972,7 @@ describe('IexecPocoBoost', function () {
19711972 assets : ordersAssets ,
19721973 requester : requester . address ,
19731974 tag : teeDealTag ,
1974- callback : ethers . Wallet . createRandom ( ) . address ,
1975+ callback : randomAddress ( ) ,
19751976 } ) ;
19761977 await signOrders ( domain , orders , ordersActors ) ;
19771978 const dealId = getDealId ( domain , orders . requester , taskIndex ) ;
0 commit comments