Skip to content

Commit

Permalink
Merge pull request #180 from pgev/gh-179-callprefix-inconsistency
Browse files Browse the repository at this point in the history
Execute rule and redemption callprefix-es are out of sync.
  • Loading branch information
benjaminbollen authored Mar 25, 2019
2 parents e530238 + ecce6a7 commit 4218158
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions contracts/token/TokenHolder.sol
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,13 @@ contract TokenHolder is MasterCopyNonUpgradable

bytes4 public constant EXECUTE_RULE_CALLPREFIX = bytes4(
keccak256(
"executeRule(address,bytes,uint256,uint8,bytes32,bytes32)"
"executeRule(address,bytes,uint256,bytes32,bytes32,uint8)"
)
);

bytes4 public constant EXECUTE_REDEMPTION_CALLPREFIX = bytes4(
keccak256(
"executeRedemption(address,bytes,uint256,uint8,bytes32,bytes32)"
"executeRedemption(address,bytes,uint256,bytes32,bytes32,uint8)"
)
);

Expand Down
4 changes: 2 additions & 2 deletions test/token_holder/execute_redemption.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@ function generateTokenHolderexecuteRedemptionFunctionCallPrefix() {
type: 'uint256', name: '',
},
{
type: 'uint8', name: '',
type: 'bytes32', name: '',
},
{
type: 'bytes32', name: '',
},
{
type: 'bytes32', name: '',
type: 'uint8', name: '',
},
],
});
Expand Down
4 changes: 2 additions & 2 deletions test/token_holder/execute_rule.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,13 +139,13 @@ function generateTokenHolderExecuteRuleCallPrefix() {
type: 'uint256', name: '',
},
{
type: 'uint8', name: '',
type: 'bytes32', name: '',
},
{
type: 'bytes32', name: '',
},
{
type: 'bytes32', name: '',
type: 'uint8', name: '',
},
],
});
Expand Down

0 comments on commit 4218158

Please sign in to comment.