-
Notifications
You must be signed in to change notification settings - Fork 19
fix: only instantiate contract if contract address given #885
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
base: develop
Are you sure you want to change the base?
Conversation
Codecov ReportBase: 85.27% // Head: 85.17% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## develop #885 +/- ##
===========================================
- Coverage 85.27% 85.17% -0.10%
===========================================
Files 26 26
Lines 1297 1302 +5
Branches 190 194 +4
===========================================
+ Hits 1106 1109 +3
- Misses 191 193 +2
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
v-stickykeys
left a comment
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.
The error handling here seems a bit redundant and hard to follow.
Can we simplify to just
If usesmartcontractanchors { if contractaddress {...} else { throw } }
@v-stickykeys yes it is =( I was being lazy HAHA because of the tests dislikes the option you provided. But i should do it right. |
|
hey @stephhuynh18 should we fix conflicts and merge this during our on-call week? figured cleanup old branches |
| ) | ||
| } | ||
|
|
||
| if (this.config.blockchain.connectors.ethereum.contractAddress) { |
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.
we don't need this if since we have the throw above? but ya i like the clear error message
No description provided.