-
Notifications
You must be signed in to change notification settings - Fork 4
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
Fixed explorer assign tab contract duplication bug #70
Conversation
9ed8917
to
dde9457
Compare
import { useStyletron } from "styletron-react"; | ||
import { $smartAccount } from "../../../account-connector/model"; | ||
import { | ||
$assignedSmartContractAddress, | ||
$state, |
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.
can you plz rename this? state is a meaningless name which is quite not good practice. imagine you are going to have another similar entity - how to name it - state2
?
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.
I have renamed it with deployedContracts because the variable is a store that holds contracts code with array of addresses, post deployment.
49a6789
to
5d91364
Compare
Changed AssignTab explicitly to disallow duplication of contracts and clearing of address on modal close.