Skip to content

Commit

Permalink
update from openzepplin event structure
Browse files Browse the repository at this point in the history
  • Loading branch information
Arn0d committed Oct 8, 2023
1 parent 8ed1852 commit c2f140c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Scarb.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cairo_erc_3525"
version = "2.0.3"
version = "2.0.2"

[lib]

Expand Down
5 changes: 3 additions & 2 deletions src/tests/unit/test_mint_burn.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ use starknet::testing::set_caller_address;
// External imports

use openzeppelin::token::erc721::erc721::ERC721;
use openzeppelin::tests::utils;

// Local imports

Expand Down Expand Up @@ -45,7 +46,7 @@ fn test_mint() {
assert(owner == OWNER(), 'Wrong owner');

// [Assert] Events
let event = starknet::testing::pop_log::<ERC721::Transfer>(get_contract_address()).unwrap();
let event = utils::pop_log::<ERC721::Transfer>(get_contract_address()).unwrap();
assert(event.from == ZERO(), 'Wrong event from');
assert(event.to == OWNER(), 'Wrong event to');
assert(event.token_id == TOKEN_ID_1, 'Wrong event token_id');
Expand Down Expand Up @@ -131,7 +132,7 @@ fn test_burn() {
.unwrap();

// [Assert] Events
let event = starknet::testing::pop_log::<ERC721::Transfer>(get_contract_address()).unwrap();
let event = utils::pop_log::<ERC721::Transfer>(get_contract_address()).unwrap();
assert(event.from == OWNER(), 'Wrong event from');
assert(event.to == ZERO(), 'Wrong event to');
assert(event.token_id == TOKEN_ID_1, 'Wrong event token_id');
Expand Down

0 comments on commit c2f140c

Please sign in to comment.