Skip to content

Commit bbc6d39

Browse files
committed
Fix tests
1 parent 773234c commit bbc6d39

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

packages/test_common/src/mocks/erc6909.cairo

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ pub mod ERC6909Mock {
1515
#[constructor]
1616
fn constructor(ref self: ContractState, recipient: ContractAddress, id: u256, amount: u256) {
1717
self.erc6909.initializer();
18-
self.erc6909._mint(recipient, id, amount);
18+
self.erc6909.mint(recipient, id, amount);
1919
}
2020
}
2121

@@ -59,7 +59,7 @@ pub mod ERC6909MockWithHooks {
5959
#[constructor]
6060
fn constructor(ref self: ContractState, recipient: ContractAddress, id: u256, amount: u256) {
6161
self.erc6909.initializer();
62-
self.erc6909._mint(recipient, id, amount);
62+
self.erc6909.mint(recipient, id, amount);
6363
}
6464

6565
impl ERC6909HooksImpl of ERC6909Component::ERC6909HooksTrait<ContractState> {
@@ -115,7 +115,7 @@ pub mod ERC6909ContentURIMock {
115115
self.erc6909.initializer();
116116
self.erc6909_content_uri.initializer();
117117
self.erc6909_content_uri._set_contract_uri(contract_uri);
118-
self.erc6909._mint(recipient, id, amount);
118+
self.erc6909.mint(recipient, id, amount);
119119
}
120120
}
121121

@@ -151,7 +151,7 @@ pub mod ERC6909MetadataMock {
151151
self.erc6909_metadata._set_token_name(id, name);
152152
self.erc6909_metadata._set_token_symbol(id, symbol);
153153
self.erc6909_metadata._set_token_decimals(id, decimals);
154-
self.erc6909._mint(recipient, id, amount);
154+
self.erc6909.mint(recipient, id, amount);
155155
}
156156
}
157157

@@ -176,6 +176,6 @@ pub mod ERC6909TokenSupplyMock {
176176
fn constructor(ref self: ContractState, recipient: ContractAddress, id: u256, amount: u256) {
177177
self.erc6909.initializer();
178178
self.erc6909_token_supply.initializer();
179-
self.erc6909._mint(recipient, id, amount);
179+
self.erc6909.mint(recipient, id, amount);
180180
}
181181
}

packages/token/src/tests/erc6909/test_erc6909.cairo

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@ fn COMPONENT_STATE_WITH_HOOKS() -> ComponentStateWithHooks {
3030
fn setup() -> ComponentState {
3131
let mut state = COMPONENT_STATE();
3232
state.initializer();
33-
state._mint(OWNER, TOKEN_ID, SUPPLY);
33+
state.mint(OWNER, TOKEN_ID, SUPPLY);
3434
state
3535
}
3636

3737
fn setup_with_hooks() -> ComponentStateWithHooks {
3838
let mut state = COMPONENT_STATE_WITH_HOOKS();
3939
state.initializer();
40-
state._mint(OWNER, TOKEN_ID, SUPPLY);
40+
state.mint(OWNER, TOKEN_ID, SUPPLY);
4141
state
4242
}
4343

0 commit comments

Comments
 (0)