diff --git a/contracts/invoice_nft/Cargo.toml b/contracts/invoice_nft/Cargo.toml index 9f58e6d..6a86094 100644 --- a/contracts/invoice_nft/Cargo.toml +++ b/contracts/invoice_nft/Cargo.toml @@ -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" diff --git a/contracts/invoice_nft/src/lib.rs b/contracts/invoice_nft/src/lib.rs index b527909..300591a 100644 --- a/contracts/invoice_nft/src/lib.rs +++ b/contracts/invoice_nft/src/lib.rs @@ -1,5 +1,4 @@ #![no_std] -use soroban_sdk::{contract, contractimpl, contracttype, Address, Env, Vec, BytesN, symbol_short}; mod tests; @@ -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 diff --git a/contracts/lending_pool/Cargo.toml b/contracts/lending_pool/Cargo.toml index cb0b381..19afbd4 100644 --- a/contracts/lending_pool/Cargo.toml +++ b/contracts/lending_pool/Cargo.toml @@ -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"] }