diff --git a/contracts/solidity/src/PaymentRegistry.sol b/contracts/solidity/src/PaymentRegistry.sol index 0c0f2090..87168ed3 100644 --- a/contracts/solidity/src/PaymentRegistry.sol +++ b/contracts/solidity/src/PaymentRegistry.sol @@ -87,6 +87,14 @@ contract PaymentRegistry is Initializable, OwnableUpgradeable, UUPSUpgradeable { emit ModifiedEscrowClaimPaymentSelector(snEscrowClaimPaymentSelector); } + function getEscrowAddress() external view returns (uint256) { + return _snEscrowAddress; + } + + function getEscrowClaimPaymentSelector() external view returns (uint256) { + return _snEscrowClaimPaymentSelector; + } + //// MM ACL: @@ -98,10 +106,6 @@ contract PaymentRegistry is Initializable, OwnableUpgradeable, UUPSUpgradeable { _marketMaker = newMMAddress; } - function getOwner() external view returns (address) { - return owner(); - } - modifier onlyOwnerOrMM { require(msg.sender == owner() || msg.sender == _marketMaker, "Only Owner or MM can call this function"); _; diff --git a/contracts/solidity/test/MM_ACL.sol b/contracts/solidity/test/MM_ACL.sol index 661a41a7..1a74c6d9 100644 --- a/contracts/solidity/test/MM_ACL.sol +++ b/contracts/solidity/test/MM_ACL.sol @@ -48,7 +48,7 @@ contract TransferTest is Test { } function test_get_owner() public { - address ownerAddress = yab_caller.getOwner(); + address ownerAddress = yab_caller.owner(); assertEq(ownerAddress, deployer); } }