Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Edit Multisig Wallet settings #3740

Merged
merged 23 commits into from
Dec 8, 2016
Merged

Edit Multisig Wallet settings #3740

merged 23 commits into from
Dec 8, 2016

Conversation

ngotchac
Copy link
Contributor

@ngotchac ngotchac commented Dec 7, 2016

This PR adds to the Wallet the capability to edit the settings (owners, require, dailylimit).
It also fixes a fex bugs, and use the optimized bytecodes version which lower the gas amount at creation from 2.3M to 1.7M

In order to edit the settings, there is no way that we could show the pending operations to the users since it is not possible from the current contract version to link an operation hash to an actual operation. One idea would be to edit the contract and add to the Pending struct a data field which would hold the msg.data bytes. Then add a getter from an operation hash. This will make it possible to know which method was called for every pending operations, but only for new contracts versions. For older ones, we'll just have to tell users to ask all required owners to edit the same settings to take them into account...

@ngotchac ngotchac added A0-pleasereview 🤓 Pull request needs code review. M7-ui A3-inprogress ⏳ Pull request is in progress. No review needed at this stage. and removed A0-pleasereview 🤓 Pull request needs code review. A3-inprogress ⏳ Pull request is in progress. No review needed at this stage. labels Dec 7, 2016
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.003%) to 85.916% when pulling 525f72a on ng-multisig-edit into 5f10218 on master.

@@ -113,7 +113,7 @@ export function inNumber10 (number) {

export function inNumber16 (number) {
if (isInstanceOf(number, BigNumber)) {
return inHex(number.toString(16));
return inHex(number.round().toString(16));
Copy link
Contributor

@jacogr jacogr Dec 8, 2016

Choose a reason for hiding this comment

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

This is dangerous to do in the API, since the user needs to specify the correct values. When it is not a valid int, we should actually throw an exception - needs to be handled properly where called from.

What I do agree, currently we try to format invalid values, needs to stop doing that - but the inputs needs to be supplied properly. So throw & get app developer to fix.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.04%) to 85.883% when pulling b6f04e0 on ng-multisig-edit into 5f10218 on master.

@jacogr jacogr added A8-looksgood 🦄 Pull request is reviewed well. and removed A0-pleasereview 🤓 Pull request needs code review. labels Dec 8, 2016
@jacogr jacogr merged commit 715761a into master Dec 8, 2016
@jacogr jacogr deleted the ng-multisig-edit branch December 8, 2016 14:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A8-looksgood 🦄 Pull request is reviewed well.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants