Skip to content

Commit c963b33

Browse files
committed
address review feedback
Signed-off-by: Xin Li <[email protected]>
1 parent 29be44b commit c963b33

File tree

3 files changed

+30
-6
lines changed

3 files changed

+30
-6
lines changed

tools/k6/src/rest/libex/parameters.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ const computeAccountWithCryptoAllowanceParameters = wrapComputeParametersFunc(
167167
};
168168
}
169169

170-
throw new Error('It was not possible to find an account with with significant number of crypto allowances.');
170+
throw new Error('It was not possible to find an account with significant number of crypto allowances.');
171171
}
172172
);
173173

@@ -206,7 +206,7 @@ const computeAccountWithNftsParameters = wrapComputeParametersFunc(['DEFAULT_ACC
206206
return {DEFAULT_ACCOUNT_ID_NFTS: candidate.account};
207207
}
208208

209-
throw new Error('It was not possible to find an account with with significant number of nfts.');
209+
throw new Error('It was not possible to find an account with significant number of nfts.');
210210
});
211211

212212
const computeAccountWithTokenAllowanceParameters = wrapComputeParametersFunc(
@@ -246,7 +246,7 @@ const computeAccountWithTokenAllowanceParameters = wrapComputeParametersFunc(
246246
return {DEFAULT_ACCOUNT_ID_TOKEN_ALLOWANCE: candidate.account};
247247
}
248248

249-
throw new Error('It was not possible to find an account with with significant number of token allowances.');
249+
throw new Error('It was not possible to find an account with significant number of token allowances.');
250250
}
251251
);
252252

@@ -285,7 +285,7 @@ const computeAccountWithTokenParameters = wrapComputeParametersFunc(['DEFAULT_AC
285285
return {DEFAULT_ACCOUNT_ID_TOKEN: candidate.account};
286286
}
287287

288-
throw new Error('It was not possible to find an account with with significant number of tokens.');
288+
throw new Error('It was not possible to find an account with significant number of tokens.');
289289
});
290290

291291
const computeBlockParameters = wrapComputeParametersFunc(['DEFAULT_BLOCK_NUMBER', 'DEFAULT_BLOCK_HASH'], () => {
Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,13 @@
1-
{}
1+
{
2+
"example": [
3+
{
4+
"block": "",
5+
"data": "",
6+
"to": "",
7+
"gas": 0,
8+
"from": "",
9+
"value": 0,
10+
"sleep": 0
11+
}
12+
]
13+
}
Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,13 @@
1-
{}
1+
{
2+
"example": [
3+
{
4+
"block": "",
5+
"data": "",
6+
"to": "",
7+
"gas": 0,
8+
"from": "",
9+
"value": 0,
10+
"sleep": 0
11+
}
12+
]
13+
}

0 commit comments

Comments
 (0)