Skip to content

Commit

Permalink
feat: remove redundant view function
Browse files Browse the repository at this point in the history
Signed-off-by: Tomás Migone <[email protected]>
  • Loading branch information
tmigone committed Dec 6, 2023
1 parent 2c8dd56 commit e607248
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
11 changes: 0 additions & 11 deletions src/Escrow.sol
Original file line number Diff line number Diff line change
Expand Up @@ -650,17 +650,6 @@ contract Escrow {
return escrowAccounts[sender][receiver];
}

/**
* @dev Retrieves the amount of unassigned escrow deposited for a sender.
* @param sender Address of the sender.
* @return The amount of escrow deposited.
*/
function getUnassignedEscrowAmount(
address sender
) external view returns (uint256) {
return unassignedAccounts[sender];
}

/**
* @dev Verifies a proof that authorizes the sender to authorize the signer.
* @param proof The proof provided by the signer to authorize the sender.
Expand Down
2 changes: 1 addition & 1 deletion test/Escrow.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ contract EscrowContractTest is Test {
depositUnassignedEscrow(SENDER_ADDRESS, SENDER_ADDRESS, ESCROW_AMOUNT);

vm.prank(SENDER_ADDRESS);
uint256 depositedAmount = escrowContract.getUnassignedEscrowAmount(SENDER_ADDRESS);
uint256 depositedAmount = escrowContract.unassignedAccounts(SENDER_ADDRESS);

assertEq(depositedAmount, ESCROW_AMOUNT, "Incorrect deposited amount");
}
Expand Down

0 comments on commit e607248

Please sign in to comment.