Skip to content

Commit

Permalink
Fix transient deps (OpenZeppelin#1249)
Browse files Browse the repository at this point in the history
* fix dep

* add changelog entry

* use crate

* remove unused dep

* import with crate

* update changelog

* remove unnecessary entries

* add fixed section

* add import fix entry for src9
  • Loading branch information
andrew-fleming authored Dec 5, 2024
1 parent 83a33fc commit cb41a36
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 6 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,13 @@ use crate::votes::VotesComponent::VotingUnitsTrait;
- VestingComponent `release` function won't emit an event or attempt to transfer when the amount is zero (#1209)
- Bump snforge_std to v0.33.0 (#1203)

### Fixed

- Scarb manifest dependencies (#1249):
- Move `openzeppelin_utils` from dev dep to dep in governance manifest
- Remove `openzeppelin_utils` as dep in access package
- Change `openzeppelin_account` to `crate` in `src9.cairo`

## 0.19.0 (2024-11-08)

### Added
Expand Down
1 change: 0 additions & 1 deletion Scarb.lock
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ dependencies = [
"openzeppelin_introspection",
"openzeppelin_test_common",
"openzeppelin_testing",
"openzeppelin_utils",
"snforge_std",
]

Expand Down
1 change: 0 additions & 1 deletion packages/access/Scarb.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ fmt.workspace = true
[dependencies]
starknet.workspace = true
openzeppelin_introspection = { path = "../introspection" }
openzeppelin_utils = { path = "../utils" }

[dev-dependencies]
assert_macros.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion packages/account/src/extensions/src9/src9.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ pub mod SRC9Component {
use crate::extensions::src9::OutsideExecution;
use crate::extensions::src9::interface;
use crate::extensions::src9::snip12_utils::OutsideExecutionStructHash;
use crate::interface::{ISRC6Dispatcher, ISRC6DispatcherTrait};
use crate::utils::execute_calls;
use openzeppelin_account::interface::{ISRC6Dispatcher, ISRC6DispatcherTrait};
use openzeppelin_introspection::src5::SRC5Component;
use openzeppelin_introspection::src5::SRC5Component::InternalTrait as SRC5InternalTrait;
use openzeppelin_utils::cryptography::snip12::{OffchainMessageHash, SNIP12Metadata};
Expand Down
2 changes: 1 addition & 1 deletion packages/account/src/tests/test_signature.cairo
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
use crate::interface::P256PublicKey;
use crate::utils::signature::Secp256Signature;
use crate::utils::signature::{
is_valid_eth_signature, is_valid_p256_signature, is_valid_stark_signature,
};
use openzeppelin_account::utils::signature::Secp256Signature;
use openzeppelin_test_common::account::SIGNED_TX_DATA as stark_signature_data;
use openzeppelin_test_common::eth_account::SIGNED_TX_DATA as eth_signature_data;
use openzeppelin_testing::constants::{TRANSACTION_HASH, secp256k1, secp256r1, stark};
Expand Down
2 changes: 1 addition & 1 deletion packages/finance/src/tests/common.cairo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use openzeppelin_finance::vesting::interface::IVestingDispatcher;
use crate::vesting::interface::IVestingDispatcher;
use openzeppelin_testing as utils;
use openzeppelin_testing::constants;
use openzeppelin_token::erc20::interface::IERC20Dispatcher;
Expand Down
2 changes: 1 addition & 1 deletion packages/governance/Scarb.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ openzeppelin_access = { path = "../access" }
openzeppelin_introspection = { path = "../introspection" }
openzeppelin_account = { path = "../account" }
openzeppelin_token = { path= "../token" }
openzeppelin_utils = { path = "../utils" }

[dev-dependencies]
assert_macros.workspace = true
snforge_std.workspace = true
openzeppelin_utils = { path = "../utils" }
openzeppelin_testing = { path = "../testing" }
openzeppelin_test_common = { path = "../test_common" }

Expand Down

0 comments on commit cb41a36

Please sign in to comment.