-
Notifications
You must be signed in to change notification settings - Fork 798
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: Add getter for logs to sendTransactionError #2771
chore: Add getter for logs to sendTransactionError #2771
Conversation
Woody4618
commented
Jun 4, 2024
- Add a getter for logs with the old types to be a non breaking change
- Add a getter for logs with the old types to be a non breaking change
|
}; | ||
} | ||
|
||
/* @deprecated Use `await getLogs()` instead */ | ||
get logs() { | ||
return this.transactionLogs as string[] | undefined; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This may not be true, right? It could be a Promise
? I think you have to just return undefined
if 'then' in this.transactionLogs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you. I added that check.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hopefully now it will not be a breaking change anymore.
…dd return type to `logs` getter.
🎉 This PR is included in version 1.92.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Because there has been no activity on this PR for 14 days since it was merged, it has been automatically locked. Please open a new issue if it requires a follow up. |