Skip to content

Commit

Permalink
Fixes tool call errors
Browse files Browse the repository at this point in the history
  • Loading branch information
dwhiffing committed Sep 6, 2024
1 parent 1250239 commit 5609030
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/generateToolFromABI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ const getToolFunction =
// Just to get around TS
if (error instanceof TransactionError) {
console.error(`${error.constructor.name}:`, error.message);
const transactionHash = error.context.hash;
const transactionHash = error.context?.hash;
return JSON.stringify({
message: error.message,
status: "failure",
Expand Down

0 comments on commit 5609030

Please sign in to comment.