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);