Skip to content

Commit

Permalink
fix var name
Browse files Browse the repository at this point in the history
  • Loading branch information
Torres-ssf committed May 15, 2023
1 parent 03123a8 commit 5698280
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/predicate/src/predicate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,15 +80,15 @@ export class Predicate<ARGS extends InputValue[]> extends Account {

private static processPredicateData(
bytes: BytesLike,
jsonAbi: JsonAbi,
jsonAbi?: JsonAbi,
configurableConstants?: { [name: string]: unknown }
) {
let predicateBytes = arrayify(bytes);
let predicateTypes: ReadonlyArray<JsonAbiFragmentType> | undefined;
let predicateInterface: Interface | undefined;

if (JsonAbi) {
predicateInterface = new Interface(JsonAbi as JsonAbi);
if (jsonAbi) {
predicateInterface = new Interface(jsonAbi as JsonAbi);
const mainFunction = predicateInterface.fragments.find(({ name }) => name === 'main');
if (mainFunction !== undefined) {
predicateTypes = mainFunction.inputs;
Expand Down

0 comments on commit 5698280

Please sign in to comment.