Skip to content

Commit

Permalink
fix: updated paths to target
Browse files Browse the repository at this point in the history
  • Loading branch information
alenmestrov committed Dec 4, 2024
1 parent 0b9dae5 commit c44a0bf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions contracts/icp/proxy-contract/mock/external/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
2 changes: 1 addition & 1 deletion contracts/icp/proxy-contract/mock/ledger/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 1 addition & 3 deletions contracts/icp/proxy-contract/mock/ledger/src/lib.rs
Original file line number Diff line number Diff line change
@@ -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<u64> = RefCell::new(1_000_000_000);
Expand Down

0 comments on commit c44a0bf

Please sign in to comment.