Skip to content

Commit 796fe68

Browse files
fix: check if it works
Signed-off-by: venilinvasilev <[email protected]>
1 parent 85cef32 commit 796fe68

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

src/client/Client.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,10 +213,11 @@ export default class Client {
213213

214214
/**
215215
* @param {{[key: string]: (string | AccountId)} | string} network
216+
* @param {boolean} validate
216217
* @returns {void}
217218
*/
218219
// eslint-disable-next-line @typescript-eslint/no-unused-vars
219-
setNetwork(network) {
220+
setNetwork(network, validate = true) {
220221
// TODO: This logic _can_ be de-duplicated and likely should
221222
throw new Error("not implemented");
222223
}

src/client/NodeClient.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,10 +269,14 @@ export default class NodeClient extends Client {
269269
* Available only for NodeClient
270270
*
271271
* @param {number} maxExecutionTime
272+
* @param {boolean} validate
272273
* @returns {this}
273274
*/
274-
setMaxExecutionTime(maxExecutionTime) {
275-
this._maxExecutionTime = maxExecutionTime;
275+
setMaxExecutionTime(maxExecutionTime, validate) {
276+
if (validate === false) {
277+
this._maxExecutionTime = maxExecutionTime;
278+
return this;
279+
}
276280
return this;
277281
}
278282

0 commit comments

Comments
 (0)