Skip to content

Commit aef2653

Browse files
committed
chore: fix typo and add sha256 argument requirements
1 parent 0d8a4ae commit aef2653

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

soroban-sdk/src/lib.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -308,9 +308,10 @@ pub use soroban_sdk_macros::contracterror;
308308
/// ### SHA-256 Verification
309309
///
310310
/// An optional `sha256` parameter can be provided to verify the integrity of
311-
/// the WASM file at compile time. When provided, The macro computes the
312-
/// SHA-256 hash of the WASM file at compile time and produces a compile error
313-
/// if it does not match the provided value.
311+
/// the WASM file at compile time. When provided, the macro computes the
312+
/// SHA-256 hash of the WASM file at compile time and produces a compile error
313+
/// if it does not match the provided value. The `sha256` argument must
314+
/// be a hex-encoded SHA-256 digest (64 hex chars, no 0x prefix).
314315
///
315316
/// ```ignore
316317
/// mod contract_a {
@@ -1030,6 +1031,7 @@ pub use soroban_sdk_macros::contractspecfn;
10301031
/// Unlike [`contractimport`], `contractfile` **requires** a `sha256`
10311032
/// parameter. The macro computes the SHA-256 hash of the WASM file at compile
10321033
/// time and produces a compile error if it does not match the provided value.
1034+
/// The `sha256` argument must be a hex-encoded SHA-256 digest (64 hex chars, no 0x prefix).
10331035
///
10341036
/// ```ignore
10351037
/// soroban_sdk::contractfile!(

0 commit comments

Comments
 (0)