Skip to content

Commit

Permalink
chore: add RNSCommission to Contract Type
Browse files Browse the repository at this point in the history
  • Loading branch information
tringuyenskymavis committed Jun 24, 2024
1 parent 6de652a commit a2920b0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion script/utils/Contract.sol
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ enum Contract {
PublicResolver,
OwnedMulticaller,
RNSReverseRegistrar,
RONRegistrarController
RONRegistrarController,
RNSCommission
}

using { key, name } for Contract global;
Expand All @@ -32,5 +33,6 @@ function name(Contract contractEnum) pure returns (string memory) {
if (contractEnum == Contract.OwnedMulticaller) return "OwnedMulticaller";
if (contractEnum == Contract.RNSReverseRegistrar) return "RNSReverseRegistrar";
if (contractEnum == Contract.RONRegistrarController) return "RONRegistrarController";
if (contractEnum == Contract.RNSCommission) return "RNSCommission";
revert("Contract: Unknown contract");
}

0 comments on commit a2920b0

Please sign in to comment.