Skip to content

Commit

Permalink
Popped overrides in the getMethodString function
Browse files Browse the repository at this point in the history
  • Loading branch information
KyrylR committed Dec 23, 2023
1 parent 5d0f17d commit 120eb36
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,10 @@ export function getMethodString(
contractName = "Unidentified Contract";
}

if (methodFragment.inputs.length + 1 === args.length) {
args.pop();
}

if (methodFragment.inputs === undefined) {
return `${contractName}.${methodName}()`;
}
Expand Down

0 comments on commit 120eb36

Please sign in to comment.