Skip to content

Commit

Permalink
Fix example, update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Thoralf-M committed Aug 30, 2023
1 parent 828cab9 commit c89d324
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion bindings/core/src/method/account.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ pub enum AccountMethod {
/// Returns all pending transactions of the account
/// Expected response: [`Transactions`](crate::Response::Transactions)
PendingTransactions,
/// A generic `burn()` function that can be used to burn native tokens, nfts, foundries and aliases.
/// A generic function that can be used to burn native tokens, nfts, foundries and aliases.
///
/// Note that burning **native tokens** doesn't require the foundry output which minted them, but will not
/// increase the foundries `melted_tokens` field, which makes it impossible to destroy the foundry output.
Expand Down
2 changes: 1 addition & 1 deletion bindings/nodejs/lib/wallet/account.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export class Account {
}

/**
* A generic `burn()` function that can be used to prepare to burn native tokens, nfts, foundries and aliases.
* A generic function that can be used to prepare to burn native tokens, nfts, foundries and aliases.
* @param burn The outputs to burn
* @param transactionOptions The options to define a `RemainderValueStrategy`
* or custom inputs.
Expand Down
2 changes: 1 addition & 1 deletion bindings/python/examples/how_tos/native_tokens/create.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
utf8_to_hex('Hello, World!'),
)

prepared_transaction = account.create_native_token(params, None)
prepared_transaction = account.prepare_create_native_token(params, None)
transaction = prepared_transaction.send()
print(f'Transaction sent: {transaction.transactionId}')

Expand Down
2 changes: 1 addition & 1 deletion bindings/python/iota_sdk/wallet/account.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def get_metadata(self) -> AccountMetadata:

def burn(
self, burn: Burn, options: Optional[TransactionOptions] = None) -> Transaction:
"""A generic `burn()` function that can be used to burn native tokens, nfts, foundries and aliases.
"""A generic function that can be used to burn native tokens, nfts, foundries and aliases.
"""
return self.prepare_burn(burn, options).send()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use crate::{
pub(crate) mod melt_native_token;

impl Account {
/// A generic `burn()` function that can be used to burn native tokens, nfts, foundries and aliases.
/// A generic function that can be used to burn native tokens, nfts, foundries and aliases.
///
/// Note that burning **native tokens** doesn't require the foundry output which minted them, but will not increase
/// the foundries `melted_tokens` field, which makes it impossible to destroy the foundry output. Therefore it's
Expand Down

0 comments on commit c89d324

Please sign in to comment.