Skip to content

Commit

Permalink
Merge pull request #77 from rrrkren/eric/accountkeynewfield
Browse files Browse the repository at this point in the history
  • Loading branch information
turbolent authored Jun 5, 2024
2 parents 694b3c8 + 4eb6d3d commit a631de2
Showing 1 changed file with 15 additions and 11 deletions.
26 changes: 15 additions & 11 deletions versioned_docs/version-1.0/language/core-events.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,20 @@ Event name: `flow.AccountKeyAdded`
access(all)
event AccountKeyAdded(
address: Address,
publicKey: PublicKey
publicKey: PublicKey,
weight: UFix64,
hashAlgorithm: HashAlgorithm,
keyIndex: Int
)
```

| Field | Type | Description |
| ------------- | ----------- | ----------------------------------------------- |
| `address` | `Address` | The address of the account the key is added to |
| `publicKey` | `PublicKey` | The public key added to the account |

| Field | Type | Description |
|-----------------|-----------------|------------------------------------------------|
| `address` | `Address` | The address of the account the key is added to |
| `publicKey` | `PublicKey` | The public key added to the account |
| `weight` | `UFix64` | Weight of the new account key |
| `hashAlgorithm` | `HashAlgorithm` | HashAlgorithm of the new account key |
| `keyIndex` | `Int` | Index of the new account key |

### Account Key Removed

Expand All @@ -58,11 +63,10 @@ event AccountKeyRemoved(
)
```

| Field | Type | Description |
| ----------- | ----------- | --------------------------------------------------- |
| `address` | `Address` | The address of the account the key is removed from |
| `publicKey` | `PublicKey` | Public key removed from the account |

| Field | Type | Description |
|-------------|-----------|----------------------------------------------------|
| `address` | `Address` | The address of the account the key is removed from |
| `publicKey` | `Int` | Index of public key removed from the account |

### Account Contract Added

Expand Down

0 comments on commit a631de2

Please sign in to comment.