Skip to content

Commit

Permalink
fix confirmClaim signatures
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiaszimmermann committed Jul 28, 2022
1 parent d942f73 commit 8c56549
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 13 deletions.
9 changes: 3 additions & 6 deletions contracts/components/Product.sol
Original file line number Diff line number Diff line change
Expand Up @@ -177,17 +177,14 @@ abstract contract Product is
function _confirmClaim(
bytes32 processId,
uint256 claimId,
uint256 payoutAmount,
bytes memory data
uint256 payoutAmount
)
internal
returns (uint256 _payoutId)
{
_payoutId = _productService.confirmClaim(
_productService.confirmClaim(
processId,
claimId,
payoutAmount,
data);
payoutAmount);
}

function _declineClaim(bytes32 processId, uint256 claimId) internal {
Expand Down
11 changes: 7 additions & 4 deletions contracts/modules/IPolicy.sol
Original file line number Diff line number Diff line change
Expand Up @@ -136,11 +136,14 @@ interface IPolicy {
bytes32 processId,
uint256 claimAmount,
bytes calldata data
)
external
returns (uint256 claimId);
) external returns (uint256 claimId);

function confirmClaim(
bytes32 processId,
uint256 claimId,
uint256 confirmedAmount
) external;

function confirmClaim(bytes32 processId, uint256 claimId) external;
function declineClaim(bytes32 processId, uint256 claimId) external;
function closeClaim(bytes32 processId, uint256 claimId) external;

Expand Down
5 changes: 2 additions & 3 deletions contracts/services/IProductService.sol
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,8 @@ interface IProductService {
function confirmClaim(
bytes32 processId,
uint256 claimId,
uint256 payoutAmount,
bytes calldata data
) external returns(uint256 payoutId);
uint256 confirmedAmount
) external;

function declineClaim(bytes32 processId, uint256 claimId) external;
function closeClaim(bytes32 processId, uint256 claimId) external;
Expand Down

0 comments on commit 8c56549

Please sign in to comment.