Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dcarlcf committed Apr 21, 2019
1 parent f740e40 commit 20cdfa8
Show file tree
Hide file tree
Showing 8 changed files with 46,305 additions and 13,183 deletions.
8,635 changes: 3,894 additions & 4,741 deletions build/contracts/MasterContract.json

Large diffs are not rendered by default.

31,220 changes: 31,220 additions & 0 deletions build/contracts/MasterMultiSig.json

Large diffs are not rendered by default.

3,702 changes: 1,851 additions & 1,851 deletions build/contracts/NiftyStaticCalls.json

Large diffs are not rendered by default.

8,576 changes: 3,849 additions & 4,727 deletions build/contracts/NiftyWallet.json

Large diffs are not rendered by default.

3,698 changes: 1,849 additions & 1,849 deletions build/contracts/NiftyWalletContract.json

Large diffs are not rendered by default.

3,626 changes: 3,626 additions & 0 deletions build/contracts/TestContractCalls.json

Large diffs are not rendered by default.

29 changes: 15 additions & 14 deletions contracts/MasterMultiSig.sol
Original file line number Diff line number Diff line change
Expand Up @@ -221,21 +221,22 @@ contract MasterMultiSig {
* @dev Stored here to reduce deployment costs of a Nifty Wallet instance
*/

struct mStruct {
address this_add;
address des_add;
uint value;
uint interalTxCount;
bytes txData;
}
struct mStruct {
address this_add;
address des_add;
uint value;
uint internalTxCount;
bytes txData;
}

function returnTxMessageToSign(bytes memory txData,
address des_add,
uint value,
uint tx_count) public view returns(bytes32) {
mStruct memory message = mStruct(msg.sender, des_add, value, tx_count, txData);
return keccak256(abi.encodePacked(message.this_add, message.internalTxCount, message.des_add, message.value, message.txData));
}

function returnTxMessageToSign(bytes memory txData,
address des_add,
uint value,
uint tx_count) public view returns(bytes32) {
mStruct memory message = mStruct(msg.sender, des_add, value, tx_count, txData);
return keccak256(abi.encode(message.this_add, message.txData));
}

/**
* Multisig transacitons from https://github.com/gnosis/MultiSigWallet/blob/master/contracts/MultiSigWallet.sol
Expand Down
2 changes: 1 addition & 1 deletion contracts/NiftyWallet.sol
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ contract NiftyWallet {

/**
* The Nifty Wallet - the niftiest wallet around!
* Author - Duncan Cock Foster. [email protected]
* Author - Duncan Cock Foster - [email protected]
*/

/**
Expand Down

0 comments on commit 20cdfa8

Please sign in to comment.