-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Update to new terms across all our code #66
Update to new terms across all our code #66
Conversation
sharding/client.go
Outdated
func (c *Client) VMCCaller() *contracts.VMCCaller { | ||
return &c.vmc.VMCCaller | ||
// VMCCaller to interact with the sharding manager contract. | ||
func (c *Client) VMCCaller() *contracts.SMCCaller { |
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.
SMCCaller
Please run tests and lint. Travis is red |
Will do. Travis is red because VMC.sol and the bindings are still old |
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.
Please update PR title and description.
sharding/collator.go
Outdated
// Checks if our deposit has gone through according to the VMC | ||
b, err := c.VMCCaller().IsValidatorDeposited(&bind.CallOpts{}, account.Address) | ||
// Checks if our deposit has gone through according to the SMC | ||
b, err := c.SMCCaller().IsCollatorDeposited(&bind.CallOpts{}, account.Address) |
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.
Just return the result of this method call. No need for the following if else statement
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.
Please update title and description of PR. It still says work in progress.
sharding/collator.go
Outdated
return false, err | ||
} | ||
// Checks if our deposit has gone through according to the SMC | ||
b, err := c.SMCCaller().IsCollatorDeposited(&bind.CallOpts{}, account.Address) |
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.
return c.SMCCaller()...
No need for these variables
Rename from vmc.go to smc.go |
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.
Travis is flakey, but looks good to me
Ashely Yan has added her updates of week 1
Here is the list of todos to update terms across all our code