File tree Expand file tree Collapse file tree 1 file changed +14
-6
lines changed
Expand file tree Collapse file tree 1 file changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -39,12 +39,20 @@ contract RLCOFTTest is Test {
3939 // Deploy the contract using the deployment script
4040 rlcOft = RLCOFT (new RLCOFTDeploy ().run ());
4141
42- // Mint some tokens for testing
43- vm.prank (owner);
44- rlcOft.mint (user1, 1000 * 10 ** 9 ); // 1000 tokens with 9 decimals
45-
46- vm.prank (owner);
47- rlcOft.mint (user2, 500 * 10 ** 9 ); // 500 tokens with 9 decimals
42+
43+ vm.startPrank (owner);
44+ rlcOft.grantRole (rlcOft.BRIDGE_ROLE (), owner);
45+ rlcOft.mint (user1, 1000 * 10 ** 9 );
46+ rlcOft.mint (user2, 500 * 10 ** 9 );
47+ vm.stopPrank ();
48+ }
49+
50+ // ============ Deployment Tests ============
51+ function testDeployment () public {
52+ assertEq (rlcOft.name (), "RLC OFT Test " );
53+ assertEq (rlcOft.symbol (), "RLCT " );
54+ assertEq (rlcOft.decimals (), 9 );
55+ assertEq (rlcOft.totalSupply (), 1500 * 10 ** 9 ); // 1000 + 500
4856 }
4957
5058 // ============ Pausable Tests ============
You can’t perform that action at this time.
0 commit comments