Skip to content

Commit

Permalink
CAP-0046-06: Fix events emitted (#1564)
Browse files Browse the repository at this point in the history
  • Loading branch information
leighmcculloch authored Oct 28, 2024
1 parent 6677c5f commit 7b1ff42
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions core/cap-0046-06.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,15 +171,15 @@ fn allowance(e: &Host, from: Address, spender: Address) -> Result<i128, HostErro
/// * `spender` - The address being authorized to spend the tokens held by
/// `from`.
/// * `amount` - The tokens to be made availabe to `spender`.
/// * `expiration_ledger` - The ledger number where this allowance expires. Cannot
/// * `live_until_ledger` - The ledger number where this allowance expires. Cannot
/// be less than the current ledger number unless the amount is being set to 0.
/// An expired entry (where expiration_ledger < the current ledger number)
/// should be treated as a 0 amount allowance.
///
/// # Events
///
/// Emits an event with topics `["approve", from: Address,
/// spender: Address, sep0011_asset: String], data = [amount: i128, expiration_ledger: u32]`
/// spender: Address, sep0011_asset: String], data = [amount: i128, live_until_ledger: u32]`
fn approve(
e: &Host,
from: Address,
Expand Down Expand Up @@ -288,7 +288,7 @@ compliance functionality.
/// # Events
///
/// Emits an event with topics `["set_admin", admin: Address, sep0011_asset: String], data =
/// [new_admin: Address]`
/// new_admin: Address`
fn set_admin(env: Env, new_admin: Address);

/// Returns the admin of the contract.
Expand All @@ -308,8 +308,8 @@ fn admin(env: Env) -> Address;
///
/// # Events
///
/// Emits an event with topics `["set_authorized", id: Address, sep0011_asset: String], data =
/// [authorize: bool]`
/// Emits an event with topics `["set_authorized", admin: Address, id: Address, sep0011_asset: String], data =
/// authorize: bool`
fn set_authorized(env: Env, id: Address, authorize: bool);

/// Mints `amount` to `to`.
Expand All @@ -336,7 +336,7 @@ fn mint(env: Env, to: Address, amount: i128);
///
/// # Events
///
/// Emits an event with topics `["clawback", admin: Address, to: Address, sep0011_asset: String],
/// Emits an event with topics `["clawback", admin: Address, from: Address, sep0011_asset: String],
/// data = amount: i128`
fn clawback(env: Env, from: Address, amount: i128);
```
Expand Down

0 comments on commit 7b1ff42

Please sign in to comment.