Skip to content

Commit

Permalink
Erc1155 dojotized (#925)
Browse files Browse the repository at this point in the history
* erc1155 impl, untested

* erc1155 fix & tests

* Component -> Model

* update to models
  • Loading branch information
notV4l authored Oct 3, 2023
1 parent d293554 commit 8360af8
Show file tree
Hide file tree
Showing 9 changed files with 1,380 additions and 7 deletions.
2 changes: 2 additions & 0 deletions crates/dojo-erc/src/lib.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ mod token {
mod erc20;
mod erc20_models;
mod erc721;
mod erc1155;

}

Expand All @@ -12,4 +13,5 @@ mod tests {

mod erc20_tests;
mod erc721_tests;
mod erc1155_tests;
}
3 changes: 3 additions & 0 deletions crates/dojo-erc/src/tests/constants.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ const ROLE: felt252 = 'ROLE';
const OTHER_ROLE: felt252 = 'OTHER_ROLE';
const URI: felt252 = 'URI';
const TOKEN_ID: u256 = 21;
const TOKEN_AMOUNT: u256 = 42;
const TOKEN_ID_2: u256 = 2;
const TOKEN_AMOUNT_2: u256 = 69;
const PUBKEY: felt252 = 'PUBKEY';

fn ADMIN() -> ContractAddress {
Expand Down
Loading

0 comments on commit 8360af8

Please sign in to comment.