Skip to content

Commit

Permalink
Merge pull request #319 from kiroboio/txTrace_computed
Browse files Browse the repository at this point in the history
fix(import): dont verify options when FCT is imported
  • Loading branch information
Brenzee authored Dec 17, 2023
2 parents c1754d6 + 170c80c commit 6e63d95
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions src/batchMultiSigCall/batchMultiSigCall.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,10 @@ export class BatchMultiSigCall {
getCallByNodeId = getCallByNodeId;
getIndexByNodeId = getIndexByNodeId;

protected _setOptionsWithoutValidation(options: DeepPartial<IFCTOptions>) {
return this._options.set(options, false) as RequiredFCTOptions;
}

// Static functions
static utils = utils;

Expand Down
4 changes: 2 additions & 2 deletions src/batchMultiSigCall/classes/Options/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ export class Options {
static helpers = helpers;
private _options: IFCTOptions = initOptions;

public set<O extends DeepPartial<IFCTOptions>>(options: O): IFCTOptions & O {
public set<O extends DeepPartial<IFCTOptions>>(options: O, verify = true): IFCTOptions & O {
const mergedOptions = deepMerge(this._options, options);
// Options.verify(mergedOptions);
if (verify) Options.verify(mergedOptions);
this._options = mergedOptions;
return this._options as IFCTOptions & O;
}
Expand Down
2 changes: 1 addition & 1 deletion src/batchMultiSigCall/methods/FCT.ts
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ export function impFCT(this: BatchMultiSigCall, fct: IFCT, map?: ReturnType<Batc
},
};

this.setOptions(options);
this._setOptionsWithoutValidation(options);
const { types: typesObject } = typedData;

for (const [index, call] of fct.mcall.entries()) {
Expand Down

0 comments on commit 6e63d95

Please sign in to comment.