Skip to content

Commit

Permalink
basic features sc-config fix
Browse files Browse the repository at this point in the history
  • Loading branch information
andrei-marinica committed Aug 23, 2024
1 parent 6e59c53 commit 97c63ab
Show file tree
Hide file tree
Showing 4 changed files with 193 additions and 12 deletions.
9 changes: 2 additions & 7 deletions contracts/feature-tests/basic-features/sc-config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
main = "basic-features"

[contracts.basic-features]
ei = "1.4"

[contracts.basic-features.profile]
overflow-checks = true # needed for overflow tests
Expand All @@ -15,12 +14,8 @@ kill_legacy_callback = true
[contracts.basic-features-crypto]
ei = "1.4"
add-unlabelled = false
add-endpoints = [
"init",
"verify_secp256r1_signature",
"verify_bls_signature_share",
"verify_bls_aggregated_signature",
]
add-endpoints = ["init"]
add-labels = ["crypto-ei-1.4"]
kill_legacy_callback = true

[[proxy]]
Expand Down
3 changes: 3 additions & 0 deletions contracts/feature-tests/basic-features/src/crypto_features.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ pub trait CryptoFeatures {
}

#[endpoint]
#[label("crypto-ei-1.4")]
fn verify_secp256r1_signature(
&self,
key: ManagedBuffer,
Expand All @@ -76,6 +77,7 @@ pub trait CryptoFeatures {
}

#[endpoint]
#[label("crypto-ei-1.4")]
fn verify_bls_signature_share(
&self,
key: ManagedBuffer,
Expand All @@ -87,6 +89,7 @@ pub trait CryptoFeatures {
}

#[endpoint]
#[label("crypto-ei-1.4")]
fn verify_bls_aggregated_signature(
&self,
key: ManagedBuffer,
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 2 additions & 5 deletions contracts/feature-tests/basic-features/wasm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
////////////////////////////////////////////////////

// Init: 1
// Endpoints: 406
// Endpoints: 403
// Async Callback: 1
// Total number of exported functions: 408
// Total number of exported functions: 405

#![no_std]

Expand Down Expand Up @@ -145,9 +145,6 @@ multiversx_sc_wasm_adapter::endpoints! {
verify_secp256k1_signature => verify_secp256k1_signature
verify_custom_secp256k1_signature => verify_custom_secp256k1_signature
compute_secp256k1_der_signature => compute_secp256k1_der_signature
verify_secp256r1_signature => verify_secp256r1_signature
verify_bls_signature_share => verify_bls_signature_share
verify_bls_aggregated_signature => verify_bls_aggregated_signature
echo_u64 => echo_u64
echo_i64 => echo_i64
echo_i32 => echo_i32
Expand Down

0 comments on commit 97c63ab

Please sign in to comment.