Skip to content

Commit d1c6fd7

Browse files
committed
chore: misc typos and doc links
1 parent b92b36b commit d1c6fd7

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

soroban-sdk/src/crypto.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -161,10 +161,10 @@ impl Crypto {
161161
&self,
162162
message_digest: &Hash<32>,
163163
signature: &BytesN<64>,
164-
recorvery_id: u32,
164+
recovery_id: u32,
165165
) -> BytesN<65> {
166166
let env = self.env();
167-
CryptoHazmat::new(env).secp256k1_recover(&message_digest.0, signature, recorvery_id)
167+
CryptoHazmat::new(env).secp256k1_recover(&message_digest.0, signature, recovery_id)
168168
}
169169

170170
/// Verifies the ECDSA secp256r1 signature.
@@ -228,14 +228,14 @@ impl CryptoHazmat {
228228
&self,
229229
message_digest: &BytesN<32>,
230230
signature: &BytesN<64>,
231-
recorvery_id: u32,
231+
recovery_id: u32,
232232
) -> BytesN<65> {
233233
let env = self.env();
234234
let bytes = internal::Env::recover_key_ecdsa_secp256k1(
235235
env,
236236
message_digest.to_object(),
237237
signature.to_object(),
238-
recorvery_id.into(),
238+
recovery_id.into(),
239239
)
240240
.unwrap_infallible();
241241
unsafe { BytesN::unchecked_new(env.clone(), bytes) }

soroban-sdk/src/env.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ pub mod internal {
3939
// any `TestContract` frame in progress and then _panics_, unwinding back to
4040
// a panic-catcher it installed when invoking the `TestContract` frame, and
4141
// then extracting E from the frame and returning it to its caller. This
42-
// simulates the "crash, but catching the error" behaviour of the WASM case.
42+
// simulates the "crash, but catching the error" behavior of the WASM case.
4343
// This only works if we panic via `escalate_error_to_panic`.
4444
//
4545
// (The reason we don't just panic_any() here and let the panic-catcher do a
@@ -725,7 +725,7 @@ impl Env {
725725
/// Take the return value with a grain of salt. The returned resources mostly
726726
/// correspond only to the operations that have happened during the host
727727
/// invocation, i.e. this won't try to simulate the work that happens in
728-
/// production scenarios (e.g. certain XDR rountrips). This also doesn't try
728+
/// production scenarios (e.g. certain XDR roundtrips). This also doesn't try
729729
/// to model resources related to the transaction size.
730730
///
731731
/// The returned value is as useful as the preceding setup, e.g. if a test
@@ -749,7 +749,7 @@ impl Env {
749749
///
750750
/// Pass the arguments for the contract's constructor, or `()` if none. For
751751
/// contracts with a constructor, use the contract's generated `Args` type
752-
/// to construct the arguments with the appropropriate types for invoking
752+
/// to construct the arguments with the appropriate types for invoking
753753
/// the constructor during registration.
754754
///
755755
/// Returns the address of the registered contract that is the same as the
@@ -1555,7 +1555,7 @@ impl Env {
15551555
/// # fn main() {
15561556
/// let e: Env = Default::default();
15571557
/// let account_contract = NoopAccountContractClient::new(&e, &e.register(NoopAccountContract, ()));
1558-
/// // Non-succesful call of `__check_auth` with a `contracterror` error.
1558+
/// // Non-successful call of `__check_auth` with a `contracterror` error.
15591559
/// assert_eq!(
15601560
/// e.try_invoke_contract_check_auth::<NoopAccountError>(
15611561
/// &account_contract.address,

soroban-sdk/src/tests/env.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ use crate::{
1414
// configured for real. Some functions in Env have in the past or may now make
1515
// assumptions about a source account being set. This is something small we do
1616
// to make sure we don't accidentally introduce Env functionality that will
17-
// panick in SDK tests.
17+
// panic in SDK tests.
1818
fn default_has_source_account_configured_in_host() {
1919
let env = Env::default();
2020
assert!(env.host().source_account_address().unwrap().is_some());

soroban-sdk/src/testutils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ pub mod budget {
336336

337337
/// Budget that tracks the resources consumed for the environment.
338338
///
339-
/// The budget consistents of two cost dimensions:
339+
/// The budget consists of two cost dimensions:
340340
/// - CPU instructions
341341
/// - Memory
342342
///

soroban-token-sdk/src/_migrating/v23_token_transfer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,6 @@
7676
//! in a few narrow scenarios (such as direct transfer to an exchange).
7777
//!
7878
//! [`Events::publish`]: crate::events::Events::publish
79-
//! [`Address`]: crate::MuxedAddress
79+
//! [`Address`]: crate::Address
8080
//! [`MuxedAddress`]: crate::MuxedAddress
8181
//! [`contractevent`]: crate::contractevent

0 commit comments

Comments
 (0)