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
6 changes: 3 additions & 3 deletions contracts/invoice_nft/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ edition = "2021"
crate-type = ["cdylib"]

[dependencies]
# We pin the SDK to version 20.0.0 exactly to match the CLI and Testnet
soroban-sdk = "20.0.0"
# We pin the SDK to version 20.5.0 to match the build environment
soroban-sdk = "20.5.0"

[dev-dependencies]
soroban-sdk = { version = "20.0.0", features = ["testutils"] }
soroban-sdk = { version = "20.5.0", features = ["testutils"] }

[profile.release]
opt-level = "z"
Expand Down
5 changes: 1 addition & 4 deletions contracts/invoice_nft/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#![no_std]
use soroban_sdk::{contract, contractimpl, contracttype, Address, Env, Vec, BytesN, symbol_short};

mod tests;

Expand Down Expand Up @@ -57,9 +56,7 @@ impl InvoiceContract {
payload.push_back(amount.into_val(&env));
payload.push_back(risk_score.into_val(&env));

let message_bytes = payload.try_into_val(&env).unwrap();
env.crypto().ed25519_verify(&backend_pubkey, &message_bytes, signature);
true

}

// 1. MINT: Create a new Invoice NFT with signature verification
Expand Down
4 changes: 2 additions & 2 deletions contracts/lending_pool/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ edition = "2021"
crate-type = ["cdylib"]

[dependencies]
soroban-sdk = "20.0.0"
soroban-sdk = "20.5.0"

[dev-dependencies]
soroban-sdk = { version = "20.0.0", features = ["testutils"] }
soroban-sdk = { version = "20.5.0", features = ["testutils"] }
Loading