@@ -69,14 +69,6 @@ function getRandomIndex(size: number) {
6969 return Math . floor ( Math . random ( ) * size ) ;
7070}
7171
72- function getRandomIndexExcept ( size : number , exceptIdx : number ) {
73- let randomIdx = getRandomIndex ( size - 1 ) ;
74- if ( randomIdx >= exceptIdx ) {
75- randomIdx += 1 ;
76- }
77- return randomIdx ;
78- }
79-
8072describe ( "account" , ( ) => {
8173 const noSuchAccount = "tccqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj5aqu5" ;
8274
@@ -245,7 +237,6 @@ describe("account", () => {
245237 } , 200 * testSize + 5000 ) ;
246238
247239 test ( `Scenario #2: importRaw ${ testSize } accounts` , async ( ) => {
248- const accountList = [ ] ;
249240 for ( let i = 0 ; i < testSize ; i ++ ) {
250241 const randomSecret = node . sdk . util . generatePrivateKey ( ) ;
251242 const account = node . sdk . util . getAccountIdFromPrivate ( randomSecret ) ;
@@ -264,7 +255,6 @@ describe("account", () => {
264255 await node . sdk . rpc . account . importRaw ( secret , passphrase ) ;
265256
266257 for ( let i = 0 ; i < testSize ; i ++ ) {
267- console . log ( i ) ;
268258 const message = makeRandomH256 ( ) ;
269259 const { r, s, v } = node . sdk . util . signEcdsa ( message , secret ) ;
270260 await node . sdk . rpc . account . unlock ( address , passphrase , 1 ) ;
0 commit comments