Skip to content

Commit

Permalink
CONTRACT: Add Access Control to LyricsFlip contract
Browse files Browse the repository at this point in the history
Fixes #105
  • Loading branch information
“Akshola00” committed Feb 2, 2025
1 parent ac0db82 commit c245ca9
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions onchain/src/tests/test_lyricsflip.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -146,20 +146,6 @@ fn test_set_role_should_panic_when_called_by_non_owner() {
stop_cheat_caller_address(lyricsflip.contract_address);
}

#[test]
#[should_panic(expected: ('Caller is not the owner',))]
fn test_set_role_should_panic_when_called_by_non_owner() {
let lyricsflip = deploy();

start_cheat_caller_address(lyricsflip.contract_address, OWNER());
lyricsflip.set_role(ADMIN_ADDRESS(), ADMIN_ROLE, true);
stop_cheat_caller_address(lyricsflip.contract_address);

start_cheat_caller_address(lyricsflip.contract_address, ADMIN_ADDRESS());
lyricsflip.set_role(ADMIN_ADDRESS(), ADMIN_ROLE, true);
stop_cheat_caller_address(lyricsflip.contract_address);
}


#[test]
fn test_start_round() {
Expand Down

0 comments on commit c245ca9

Please sign in to comment.