Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix some typos #1657

Merged
merged 1 commit into from
Nov 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bindings/nodejs/examples/client/11-build-output.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ async function run() {
const addressUnlockCondition: UnlockCondition =
new AddressUnlockCondition(new Ed25519Address(hexAddress));

// Build most basic output with amound and a single address unlock condition
// Build most basic output with amount and a single address unlock condition
const basicOutput = await client.buildBasicOutput({
amount: BigInt(1000000),
unlockConditions: [addressUnlockCondition],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ async function run() {
// To sign a transaction we need to unlock stronghold.
await wallet.setStrongholdPassword(process.env.STRONGHOLD_PASSWORD);

// Create an ouput with amount 1_000_000 and a timelock of 1 hour
// Create an output with amount 1_000_000 and a timelock of 1 hour
const in_an_hour = Math.floor(Date.now() / 1000) + 3600;
const basicOutput = await new Client({}).buildBasicOutput({
unlockConditions: [
Expand Down
2 changes: 1 addition & 1 deletion bindings/nodejs/examples/how_tos/outputs/features.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ require('dotenv').config({ path: '.env' });
// Run with command:
// yarn run-example ./how_tos/outputs/features.ts

// Build ouputs with all features
// Build outputs with all features
async function run() {
initLogger();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ require('dotenv').config({ path: '.env' });
// Run with command:
// yarn run-example ./how_tos/outputs/unlock-conditions.ts

// Build ouputs with all unlock conditions
// Build outputs with all unlock conditions
async function run() {
initLogger();

Expand Down
6 changes: 3 additions & 3 deletions bindings/nodejs/tests/client/infoMethods.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ describe.skip('Client info methods', () => {
expect(nodeHealth).toBeTruthy();
});

it('gets the unhealty nodes', async () => {
const unhealtyNodes = await client.unhealthyNodes();
it('gets the unhealthy nodes', async () => {
const unhealthyNodes = await client.unhealthyNodes();

expect(unhealtyNodes).toBeDefined();
expect(unhealthyNodes).toBeDefined();
});

it('gets tips', async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

wallet.set_stronghold_password(os.environ["STRONGHOLD_PASSWORD"])

# Create an ouput with amount 1_000_000 and a timelock of 1 hour
# Create an output with amount 1_000_000 and a timelock of 1 hour
in_an_hour = int(
time.mktime(
(datetime.datetime.now() +
Expand Down
2 changes: 1 addition & 1 deletion bindings/python/examples/how_tos/alias/create.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

load_dotenv()

# In this example we will create an alias ouput
# In this example we will create an alias output

wallet = Wallet(os.environ['WALLET_DB_PATH'])

Expand Down
2 changes: 1 addition & 1 deletion bindings/python/iota_sdk/types/node_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ class NodeInfo:
version: The version of the node.
status: The status of the node.
metrics: Some node metrics.
supportedProtocolVersions: Supported protocol versions by the ndoe.
supportedProtocolVersions: Supported protocol versions by the node.
protocol: Information about the running protocol.
pendingProtocolParameters: A list of pending (not yet active) protocol parameters.
baseToken: Information about the base token.
Expand Down
2 changes: 1 addition & 1 deletion bindings/python/iota_sdk/types/transaction_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def as_dict(self):


class RemainderValueStrategy(Enum):
"""Remainder value stragegy variants.
"""Remainder value strategy variants.

Attributes:
ChangeAddress: Allows to move the remainder value to a change address.
Expand Down
2 changes: 1 addition & 1 deletion bindings/python/iota_sdk/wallet/prepared_transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def __init__(
account: Account,
prepared_transaction_data: Union[PreparedTransactionData, Dict]
):
"""Initalize `Self`.
"""Initialize `Self`.
"""
self.account = account
self.prepared_transaction_data_dto = prepared_transaction_data
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright 2022 IOTA Stiftung
// SPDX-License-Identifier: Apache-2.0

//! Gets all alias output ids accociated with an address by querying the
//! Gets all alias output ids associated with an address by querying the
//! `api/indexer/v1/outputs/alias` node endpoint.
//!
//! Make sure that the node has the indexer plugin enabled.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright 2022 IOTA Stiftung
// SPDX-License-Identifier: Apache-2.0

//! Gets all foundry output ids accociated with an alias address by querying the
//! Gets all foundry output ids associated with an alias address by querying the
//! `api/indexer/v1/outputs/foundry` node endpoint.
//!
//! Make sure that the node has the indexer plugin enabled.
Expand Down
2 changes: 1 addition & 1 deletion sdk/examples/client/node_api_indexer/06_get_nft_outputs.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright 2022 IOTA Stiftung
// SPDX-License-Identifier: Apache-2.0

//! Gets all nft output ids accociated with an address by querying the
//! Gets all nft output ids associated with an address by querying the
//! `api/indexer/v1/outputs/nft` node endpoint.
//!
//! Make sure that the node has the indexer plugin enabled.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ async fn main() -> Result<()> {
.set_stronghold_password(std::env::var("STRONGHOLD_PASSWORD").unwrap())
.await?;

// Create an ouput with amount 1_000_000 and a timelock of 1 hour
// Create an output with amount 1_000_000 and a timelock of 1 hour
let in_an_hour = (std::time::SystemTime::now() + std::time::Duration::from_secs(3600))
.duration_since(std::time::UNIX_EPOCH)
.expect("clock went backwards")
Expand Down
2 changes: 1 addition & 1 deletion sdk/examples/how_tos/client/get_outputs.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright 2022 IOTA Stiftung
// SPDX-License-Identifier: Apache-2.0

//! Gets all basic output ids accociated with an address by querying the
//! Gets all basic output ids associated with an address by querying the
//! `api/indexer/v1/outputs/basic` node endpoint.
//!
//! Make sure that the node has the indexer plugin enabled.
Expand Down
2 changes: 1 addition & 1 deletion sdk/examples/how_tos/outputs/features.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ async fn main() -> Result<()> {
.finish_output(token_supply)?,
];

// Convert ouput array to json array
// Convert output array to json array
let json_outputs = serde_json::to_string_pretty(&outputs.iter().map(OutputDto::from).collect::<Vec<OutputDto>>())?;
println!("{json_outputs}");

Expand Down
2 changes: 1 addition & 1 deletion sdk/examples/how_tos/outputs/unlock_conditions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ async fn main() -> Result<()> {
.finish_output(token_supply)?,
];

// Convert ouput array to json array
// Convert output array to json array
let json_outputs = serde_json::to_string_pretty(&outputs.iter().map(OutputDto::from).collect::<Vec<OutputDto>>())?;
println!("{json_outputs}");

Expand Down
4 changes: 2 additions & 2 deletions sdk/src/types/block/output/metadata.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,12 @@ impl OutputMetadata {
self.output_id.index()
}

/// Returns whether the output is spent ot not.
/// Returns whether the output is spent or not.
pub fn is_spent(&self) -> bool {
self.is_spent
}

/// Sets whether the output is spent ot not.
/// Sets whether the output is spent or not.
pub fn set_spent(&mut self, spent: bool) {
self.is_spent = spent;
}
Expand Down
2 changes: 1 addition & 1 deletion sdk/tests/wallet/transactions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ async fn prepare_transaction_ledger() -> Result<()> {
)
.await?;

let data = receiver.recv().await.expect("never recieved event");
let data = receiver.recv().await.expect("never received event");
assert_eq!(data.essence, tx.payload.essence().into());
for (sign, input) in data.inputs_data.iter().zip(tx.inputs) {
assert_eq!(sign.output, input.output);
Expand Down
Loading