File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff 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!(
You can’t perform that action at this time.
0 commit comments