File tree Expand file tree Collapse file tree 2 files changed +49
-0
lines changed
Expand file tree Collapse file tree 2 files changed +49
-0
lines changed Original file line number Diff line number Diff line change @@ -130,4 +130,31 @@ contract FeeVault {
130130 hypNativeMinter = IHypNativeMinter (_hypNativeMinter);
131131 emit HypNativeMinterUpdated (_hypNativeMinter);
132132 }
133+
134+ /// @notice Return the full configuration currently stored in the contract.
135+ function getConfig ()
136+ external
137+ view
138+ returns (
139+ address _owner ,
140+ uint32 _destinationDomain ,
141+ bytes32 _recipientAddress ,
142+ uint256 _minimumAmount ,
143+ uint256 _callFee ,
144+ uint256 _bridgeShareBps ,
145+ address _otherRecipient ,
146+ address _hypNativeMinter
147+ )
148+ {
149+ return (
150+ owner,
151+ destinationDomain,
152+ recipientAddress,
153+ minimumAmount,
154+ callFee,
155+ bridgeShareBps,
156+ otherRecipient,
157+ address (hypNativeMinter)
158+ );
159+ }
133160}
Original file line number Diff line number Diff line change @@ -49,6 +49,28 @@ contract FeeVaultTest is Test {
4949 feeVault.setHypNativeMinter (address (mockMinter));
5050 }
5151
52+ function test_GetConfig () public {
53+ (
54+ address cfgOwner ,
55+ uint32 cfgDestination ,
56+ bytes32 cfgRecipient ,
57+ uint256 cfgMinAmount ,
58+ uint256 cfgCallFee ,
59+ uint256 cfgBridgeShare ,
60+ address cfgOtherRecipient ,
61+ address cfgHypNativeMinter
62+ ) = feeVault.getConfig ();
63+
64+ assertEq (cfgOwner, owner);
65+ assertEq (cfgDestination, destination);
66+ assertEq (cfgRecipient, recipient);
67+ assertEq (cfgMinAmount, minAmount);
68+ assertEq (cfgCallFee, fee);
69+ assertEq (cfgBridgeShare, 10000 );
70+ assertEq (cfgOtherRecipient, otherRecipient);
71+ assertEq (cfgHypNativeMinter, address (mockMinter));
72+ }
73+
5274 function test_Receive () public {
5375 uint256 amount = 1 ether ;
5476 (bool success ,) = address (feeVault).call {value: amount}("" );
You can’t perform that action at this time.
0 commit comments