Skip to content
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

Deployment of MultiSig and TokenHolder master copy #53

Merged
merged 11 commits into from
Jan 30, 2019

Conversation

abhayks1
Copy link
Contributor

@abhayks1 abhayks1 commented Jan 29, 2019

The PR covers below tasks:

updated in requires deployContract => DeployContract
@abhayks1 abhayks1 changed the title Deployment of MultiSig and TokenHolder Master copy Deployment of MultiSig and TokenHolder master copy Jan 29, 2019
Copy link
Contributor

@gulshanvasnani gulshanvasnani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work.
Few inline comments.

const jsonInterface = abiBinProvider.getABI(MultiSigMasterCopyContractName);
const bin = abiBinProvider.getBIN(MultiSigMasterCopyContractName);

let defaultOptions = {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are accepting txOptions in the params.So defaultOptions is not needed.
Also, please remove it from _deployTokenHolderMasterCopyRawTx and _deployUserWalletFactoryRawTx

const txObject = oThis._deployMultiSigMasterCopyRawTx(txOptions);

let params = {};
params.contractName = MultiSigMasterCopyContractName;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are constructing params in each deploy method.We can have private method for constructing params object.
What do you think ?

return contract.deploy(
{
data: bin,
arguments: args
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As there are no arguments for constructor of GnosisSafe contract,we can remove arguments: args.
Similar comments for UserWalletFactory and TokenHolder deployment

@@ -1,19 +1,21 @@
'use strict';

// TODO Gulshan: Documentation
// TODO Gulshan: class format
Copy link
Contributor

@gulshanvasnani gulshanvasnani Jan 29, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ticket created to address it :-
#54

Copy link
Contributor

@gulshanvasnani gulshanvasnani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍
Great work 🥇

@gulshanvasnani gulshanvasnani merged commit c8d99e5 into OpenST:develop Jan 30, 2019
@abhayks1 abhayks1 deleted the multisig_master_copy branch February 26, 2019 11:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants