Skip to content

Commit

Permalink
refactor: rename updateEthereumFeeProxy to setEthereumFeeProxy for cl…
Browse files Browse the repository at this point in the history
…arity in SingleRequestProxyFactory contract
  • Loading branch information
aimensahnoun committed Sep 23, 2024
1 parent aab6711 commit 0c68eba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ contract SingleRequestProxyFactory is Ownable {
* @notice Updates the EthereumFeeProxy address
* @param _newEthereumFeeProxy The new EthereumFeeProxy address
*/
function updateEthereumFeeProxy(address _newEthereumFeeProxy) external onlyOwner {
function setEthereumFeeProxy(address _newEthereumFeeProxy) external onlyOwner {
ethereumFeeProxy = _newEthereumFeeProxy;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ describe('contract: SingleRequestProxyFactory', () => {
).deploy();
await newEthereumFeeProxy.deployed();

await singleRequestProxyFactory.updateEthereumFeeProxy(newEthereumFeeProxy.address);
await singleRequestProxyFactory.setEthereumFeeProxy(newEthereumFeeProxy.address);
expect(await singleRequestProxyFactory.ethereumFeeProxy()).to.equal(
newEthereumFeeProxy.address,
);
Expand All @@ -170,7 +170,7 @@ describe('contract: SingleRequestProxyFactory', () => {
await newEthereumFeeProxy.deployed();

await expect(
singleRequestProxyFactory.connect(user).updateEthereumFeeProxy(newEthereumFeeProxy.address),
singleRequestProxyFactory.connect(user).setEthereumFeeProxy(newEthereumFeeProxy.address),
).to.be.revertedWith('Ownable: caller is not the owner');
});
});
Expand Down

0 comments on commit 0c68eba

Please sign in to comment.