Commit c695c1e 1 parent 39b1a7f commit c695c1e Copy full SHA for c695c1e
File tree 2 files changed +7
-2
lines changed
contracts/modules/tokenizer
2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -133,7 +133,10 @@ contract TokenizerModule is
133
133
/// @dev Enforced to be only callable by the upgrader admin
134
134
/// @param tokenTemplate The address of the token template to upgrade
135
135
/// @param newTokenImplementation The address of the new token implementation
136
- function upgradeWhitelistedTokenTemplate (address tokenTemplate , address newTokenImplementation ) external restricted {
136
+ function upgradeWhitelistedTokenTemplate (
137
+ address tokenTemplate ,
138
+ address newTokenImplementation
139
+ ) external restricted {
137
140
if (tokenTemplate == address (0 )) revert Errors.TokenizerModule__ZeroTokenTemplate ();
138
141
if (newTokenImplementation == address (0 )) revert Errors.TokenizerModule__ZeroTokenTemplateImplementation ();
139
142
if (! _getTokenizerModuleStorage ().isWhitelistedTokenTemplate[tokenTemplate])
Original file line number Diff line number Diff line change @@ -327,7 +327,9 @@ contract TokenizerModuleTest is BaseTest {
327
327
address newTokenTemplateImpl = address (new OwnableERC20 (address (ownableERC20Beacon)));
328
328
329
329
vm.startPrank (u.admin);
330
- vm.expectRevert (abi.encodeWithSelector (Errors.TokenizerModule__TokenTemplateNotWhitelisted.selector , address (0x1234 )));
330
+ vm.expectRevert (
331
+ abi.encodeWithSelector (Errors.TokenizerModule__TokenTemplateNotWhitelisted.selector , address (0x1234 ))
332
+ );
331
333
tokenizerModule.upgradeWhitelistedTokenTemplate (address (0x1234 ), address (newTokenTemplateImpl));
332
334
vm.stopPrank ();
333
335
}
You can’t perform that action at this time.
0 commit comments