Skip to content

Commit

Permalink
fix: mocks
Browse files Browse the repository at this point in the history
  • Loading branch information
ericnordelo committed May 22, 2024
1 parent c39732e commit db22104
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Changed (Breaking)

- Applied underscore pattern to modules
- Apply underscore pattern to modules (#993)
- AccessControlComponent
- `_change_role_admin` function renamed to `change_role_admin`
- ERC20Component:
Expand Down
6 changes: 3 additions & 3 deletions src/tests/mocks/erc20_mocks.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ mod DualCaseERC20Mock {
recipient: ContractAddress
) {
self.erc20.initializer(name, symbol);
self.erc20._mint(recipient, initial_supply);
self.erc20.mint(recipient, initial_supply);
}
}

Expand Down Expand Up @@ -74,7 +74,7 @@ mod SnakeERC20Mock {
recipient: ContractAddress
) {
self.erc20.initializer(name, symbol);
self.erc20._mint(recipient, initial_supply);
self.erc20.mint(recipient, initial_supply);
}
}

Expand Down Expand Up @@ -117,7 +117,7 @@ mod CamelERC20Mock {
recipient: ContractAddress
) {
self.erc20.initializer(name, symbol);
self.erc20._mint(recipient, initial_supply);
self.erc20.mint(recipient, initial_supply);
}

#[abi(per_item)]
Expand Down
2 changes: 1 addition & 1 deletion src/tests/mocks/erc20_votes_mocks.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,6 @@ mod DualCaseERC20VotesMock {
recipient: ContractAddress
) {
self.erc20.initializer(name, symbol);
self.erc20._mint(recipient, fixed_supply);
self.erc20.mint(recipient, fixed_supply);
}
}
4 changes: 2 additions & 2 deletions src/tests/presets/test_erc721.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -93,15 +93,15 @@ fn setup_camel_account() -> ContractAddress {
}

//
// _mint_assets
// mint_assets
//

#[test]
fn test__mint_assets() {
let mut state = ERC721Upgradeable::contract_state_for_testing();
let mut token_ids = array![TOKEN_1, TOKEN_2, TOKEN_3].span();

state._mint_assets(OWNER(), token_ids);
state.mint_assets(OWNER(), token_ids);
assert_eq!(state.erc721.balance_of(OWNER()), TOKENS_LEN);

loop {
Expand Down

0 comments on commit db22104

Please sign in to comment.