Skip to content
Merged
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
21 changes: 15 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -234,14 +234,12 @@ jobs:

- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
targets: wasm32-unknown-unknown
components: rustfmt, clippy
- name: Cache dependencies
uses: Swatinem/rust-cache@v2
with:
workspaces: contracts
workspaces: |
contracts
contracts/fuzz
- name: Format check
run: cargo fmt --all -- --check
working-directory: contracts
Expand Down Expand Up @@ -285,7 +283,18 @@ jobs:
path: contracts/target/wasm32-unknown-unknown/release/*.wasm
if-no-files-found: error
- name: Install tarpaulin
run: cargo install cargo-tarpaulin
uses: taiki-e/install-action@v2
with:
tool: cargo-tarpaulin
- name: Run coverage
run: cargo tarpaulin --out Xml
working-directory: contracts
- name: Upload coverage report
uses: actions/upload-artifact@v4
with:
name: contracts-coverage
path: contracts/cobertura.xml
retention-days: 7
- name: Check fuzz targets compile
run: cargo check
working-directory: contracts/fuzz
9 changes: 9 additions & 0 deletions backend/src/services/sorobanService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -773,6 +773,15 @@ class SorobanService {
status: sendResult.status,
});

if (sendResult.status === 'ERROR' || sendResult.status === 'TRY_AGAIN_LATER') {
logger.withContext().warn('Transaction rejected at submission', {
txHash,
status: sendResult.status,
errorResult: sendResult.errorResult?.toXDR('base64'),
});
return { txHash, status: sendResult.status };
}

// Poll for final result
const polled = await server.pollTransaction(txHash, {
attempts: 30,
Expand Down
4 changes: 4 additions & 0 deletions contracts/rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[toolchain]
channel = "1.85.0"
targets = ["wasm32-unknown-unknown"]
components = ["rustfmt", "clippy"]
Loading