From c44a0bfea01094a7232528304a30a3f0d9f013a8 Mon Sep 17 00:00:00 2001 From: alenmestrov Date: Wed, 4 Dec 2024 16:05:28 +0100 Subject: [PATCH] fix: updated paths to target --- contracts/icp/proxy-contract/mock/external/build.sh | 4 ++-- contracts/icp/proxy-contract/mock/ledger/build.sh | 2 +- contracts/icp/proxy-contract/mock/ledger/src/lib.rs | 4 +--- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/contracts/icp/proxy-contract/mock/external/build.sh b/contracts/icp/proxy-contract/mock/external/build.sh index f331d6cd7..613f17863 100755 --- a/contracts/icp/proxy-contract/mock/external/build.sh +++ b/contracts/icp/proxy-contract/mock/external/build.sh @@ -3,7 +3,7 @@ set -e cd "$(dirname $0)" -TARGET="${CARGO_TARGET_DIR:-../../../../../target}" +TARGET="${CARGO_TARGET_DIR:-./target}" rustup target add wasm32-unknown-unknown @@ -15,4 +15,4 @@ cp $TARGET/wasm32-unknown-unknown/app-release/mock_external.wasm ./res/ if command -v wasm-opt > /dev/null; then wasm-opt -Oz ./res/mock_external.wasm -o ./res/mock_external.wasm -fi +fi \ No newline at end of file diff --git a/contracts/icp/proxy-contract/mock/ledger/build.sh b/contracts/icp/proxy-contract/mock/ledger/build.sh index e9951e81c..a69571178 100755 --- a/contracts/icp/proxy-contract/mock/ledger/build.sh +++ b/contracts/icp/proxy-contract/mock/ledger/build.sh @@ -3,7 +3,7 @@ set -e cd "$(dirname $0)" -TARGET="${CARGO_TARGET_DIR:-../../../../../target}" +TARGET="${CARGO_TARGET_DIR:-./target}" rustup target add wasm32-unknown-unknown diff --git a/contracts/icp/proxy-contract/mock/ledger/src/lib.rs b/contracts/icp/proxy-contract/mock/ledger/src/lib.rs index c0661a9dd..ca175156e 100644 --- a/contracts/icp/proxy-contract/mock/ledger/src/lib.rs +++ b/contracts/icp/proxy-contract/mock/ledger/src/lib.rs @@ -1,9 +1,7 @@ use std::cell::RefCell; use candid::{CandidType, Deserialize}; -use ic_ledger_types::{ - AccountIdentifier, BlockIndex, Tokens, TransferArgs, TransferError, -}; +use ic_ledger_types::{AccountIdentifier, BlockIndex, Tokens, TransferArgs, TransferError}; thread_local! { static BALANCE: RefCell = RefCell::new(1_000_000_000);