From d5a094d172d59074c7029fd14cab45ac545e31dd Mon Sep 17 00:00:00 2001 From: tekkac Date: Sat, 28 Sep 2024 19:47:16 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20format=20code=20and=20add=20conf?= =?UTF-8?q?ig=20files?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 3 ++- Scarb.lock | 20 +++++++++++++++++++ Scarb.toml | 4 ++-- ...le_burnable_metadata_slot_approvable.cairo | 4 +++- src/test_helpers/account.cairo | 2 +- 5 files changed, 28 insertions(+), 5 deletions(-) create mode 100644 Scarb.lock diff --git a/.gitignore b/.gitignore index 9f97022..389b850 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -target/ \ No newline at end of file +target/ +.snfoundry* \ No newline at end of file diff --git a/Scarb.lock b/Scarb.lock new file mode 100644 index 0000000..db309cf --- /dev/null +++ b/Scarb.lock @@ -0,0 +1,20 @@ +# Code generated by scarb DO NOT EDIT. +version = 1 + +[[package]] +name = "cairo_erc_3525" +version = "2.1.0" +dependencies = [ + "openzeppelin", + "snforge_std", +] + +[[package]] +name = "openzeppelin" +version = "0.14.0" +source = "git+https://github.com/OpenZeppelin/cairo-contracts.git?tag=v0.14.0#f091c4f51ddeb10297db984acae965328c5a4e5b" + +[[package]] +name = "snforge_std" +version = "0.27.0" +source = "git+https://github.com/foundry-rs/starknet-foundry.git?tag=v0.27.0#2d99b7c00678ef0363881ee0273550c44a9263de" diff --git a/Scarb.toml b/Scarb.toml index abb051d..d4caddc 100644 --- a/Scarb.toml +++ b/Scarb.toml @@ -2,7 +2,7 @@ name = "cairo_erc_3525" version = "2.1.0" edition = "2023_01" -cairo-version = "2.6.3" +cairo-version = "2.6.4" [lib] @@ -19,4 +19,4 @@ casm = true test = "snforge test" [tool.snforge] -exit_first = false \ No newline at end of file +exit_first = false diff --git a/src/presets/erc3525_mintable_burnable_metadata_slot_approvable.cairo b/src/presets/erc3525_mintable_burnable_metadata_slot_approvable.cairo index 769ca0f..66bdafb 100644 --- a/src/presets/erc3525_mintable_burnable_metadata_slot_approvable.cairo +++ b/src/presets/erc3525_mintable_burnable_metadata_slot_approvable.cairo @@ -21,7 +21,9 @@ mod ERC3525MintableBurnableMSA { use openzeppelin::introspection::src5::SRC5Component; // ERC721 - use openzeppelin::token::erc721::{ERC721Component, ERC721HooksEmptyImpl, interface::{IERC721, IERC721CamelOnly}}; + use openzeppelin::token::erc721::{ + ERC721Component, ERC721HooksEmptyImpl, interface::{IERC721, IERC721CamelOnly} + }; // ERC3525 use cairo_erc_3525::module::ERC3525Component; diff --git a/src/test_helpers/account.cairo b/src/test_helpers/account.cairo index 09bf60f..e9805bf 100644 --- a/src/test_helpers/account.cairo +++ b/src/test_helpers/account.cairo @@ -58,4 +58,4 @@ pub(crate) mod AccountUpgradeable { self.upgradeable.upgrade(new_class_hash); } } -} \ No newline at end of file +}