From 34eda9f2947687dd4b82583eb36ebe968e9d6ae1 Mon Sep 17 00:00:00 2001 From: Nenad Date: Thu, 3 Oct 2024 07:51:31 +0200 Subject: [PATCH] Align Cargo.toml deps --- Cargo.lock | 3 +-- contracts/src/token/erc20/utils/safe_erc20.rs | 2 +- examples/safe-erc20/Cargo.toml | 9 ++++----- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 2431ce69..5775dc1a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3214,7 +3214,7 @@ checksum = "f3cb5ba0dc43242ce17de99c180e96db90b235b8a9fdc9543c96d2209116bd9f" [[package]] name = "safe-erc20-example" -version = "0.0.0" +version = "0.1.0-rc" dependencies = [ "alloy", "alloy-primitives", @@ -3222,7 +3222,6 @@ dependencies = [ "eyre", "mini-alloc", "openzeppelin-stylus", - "stylus-proc", "stylus-sdk", "tokio", ] diff --git a/contracts/src/token/erc20/utils/safe_erc20.rs b/contracts/src/token/erc20/utils/safe_erc20.rs index 9c47493e..bbf7fb03 100644 --- a/contracts/src/token/erc20/utils/safe_erc20.rs +++ b/contracts/src/token/erc20/utils/safe_erc20.rs @@ -3,13 +3,13 @@ use alloc::vec::Vec; use alloy_primitives::{Address, U256}; use alloy_sol_types::{sol, SolValue}; -use stylus_proc::{public, sol_interface, sol_storage, SolidityError}; use stylus_sdk::{ call::{Call, RawCall}, contract::address, evm::gas_left, function_selector, storage::TopLevelStorage, + stylus_proc::{public, sol_interface, sol_storage, SolidityError}, types::AddressVM, }; diff --git a/examples/safe-erc20/Cargo.toml b/examples/safe-erc20/Cargo.toml index 8a971ebd..51494b4a 100644 --- a/examples/safe-erc20/Cargo.toml +++ b/examples/safe-erc20/Cargo.toml @@ -4,20 +4,19 @@ edition.workspace = true license.workspace = true repository.workspace = true publish = false -version = "0.0.0" +version.workspace = true [dependencies] -openzeppelin-stylus = { path = "../../contracts" } -alloy-primitives = { workspace = true, features = ["tiny-keccak"] } +openzeppelin-stylus.workspace = true +alloy-primitives.workspace = true stylus-sdk.workspace = true -stylus-proc.workspace = true mini-alloc.workspace = true [dev-dependencies] alloy.workspace = true eyre.workspace = true tokio.workspace = true -e2e = { path = "../../lib/e2e" } +e2e.workspace = true [features] e2e = []