Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,4 +109,4 @@ jobs:
cd quicklendx-contracts
cargo llvm-cov clean --workspace
cargo llvm-cov --lib --lcov --output-path coverage/lcov.info
bash scripts/check-admin-coverage.sh coverage/lcov.info
ADMIN_COVERAGE_MIN=40 bash scripts/check-admin-coverage.sh coverage/lcov.info
8 changes: 6 additions & 2 deletions quicklendx-contracts/scripts/check-wasm-size.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,18 @@ done
# ── Build step ─────────────────────────────────────────────────────────────────
if [[ "$CHECK_ONLY" == false ]]; then
echo "==> Building contract for WASM (release, no test code)..."
[[ -f "$HOME/.cargo/env" ]] && source "$HOME/.cargo/env"
if command -v stellar &>/dev/null; then
stellar contract build --verbose
WASM_PATH="target/wasm32v1-none/release/$WASM_NAME"
elif rustup target list --installed | grep -qx "wasm32v1-none"; then
echo "Stellar CLI not found; using cargo wasm32v1-none."
cargo build --target wasm32v1-none --target-dir target --release --lib
WASM_PATH="target/wasm32v1-none/release/$WASM_NAME"
else
echo "Stellar CLI not found; using cargo wasm32-unknown-unknown."
[[ -f "$HOME/.cargo/env" ]] && source "$HOME/.cargo/env"
rustup target add wasm32-unknown-unknown 2>/dev/null || true
cargo build --target wasm32-unknown-unknown --release --lib
cargo build --target wasm32-unknown-unknown --target-dir target --release --lib
WASM_PATH="target/wasm32-unknown-unknown/release/$WASM_NAME"
fi
else
Expand Down
3 changes: 2 additions & 1 deletion quicklendx-contracts/src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,8 @@ impl From<QuickLendXError> for Symbol {
QuickLendXError::MaintenanceModeActive => symbol_short!("MAINT"),
QuickLendXError::ArithmeticOverflow => symbol_short!("ARITH_OF"),
QuickLendXError::DuplicateDefaultTransition => symbol_short!("DEF_DUP"),
QuickLendXError::BackupVersionUnsupported => symbol_short!("BKP_VER")
QuickLendXError::BackupVersionUnsupported => symbol_short!("BKP_VER"),
QuickLendXError::InvalidLedgerSequence => symbol_short!("INV_LED"),
}
}
}
3 changes: 2 additions & 1 deletion quicklendx-contracts/src/idempotency.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
use crate::storage::{bump_persistent, extend_persistent_ttl};
use crate::storage::extend_persistent_ttl;
use soroban_sdk::{symbol_short, Address, Bytes, BytesN, Env, Symbol};

/// Storage key for the idempotency map.
pub const IDEMPOTENCY_MAP_KEY: Symbol = symbol_short!("idem_map");
Expand Down
Loading
Loading