Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit 13689ac

Browse files
Account with 2 Cs (#1680)
1 parent 18d96ff commit 13689ac

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

docs/src/token.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,7 @@ curl http://api.mainnet-beta.solana.com -X POST -H "Content-Type: application/js
562562
```
563563

564564
The `"dataSize": 165` filter selects all [Token
565-
Acccount](https://github.com/solana-labs/solana-program-library/blob/08d9999f997a8bf38719679be9d572f119d0d960/token/program/src/state.rs#L86-L106)s,
565+
Account](https://github.com/solana-labs/solana-program-library/blob/08d9999f997a8bf38719679be9d572f119d0d960/token/program/src/state.rs#L86-L106)s,
566566
and then the `"memcmp": ...` filter selects based on the
567567
[mint](https://github.com/solana-labs/solana-program-library/blob/08d9999f997a8bf38719679be9d572f119d0d960/token/program/src/state.rs#L88)
568568
address within each token account.
@@ -597,7 +597,7 @@ curl http://api.mainnet-beta.solana.com -X POST -H "Content-Type: application/js
597597
```
598598

599599
The `"dataSize": 165` filter selects all [Token
600-
Acccount](https://github.com/solana-labs/solana-program-library/blob/08d9999f997a8bf38719679be9d572f119d0d960/token/program/src/state.rs#L86-L106)s,
600+
Account](https://github.com/solana-labs/solana-program-library/blob/08d9999f997a8bf38719679be9d572f119d0d960/token/program/src/state.rs#L86-L106)s,
601601
and then the `"memcmp": ...` filter selects based on the
602602
[owner](https://github.com/solana-labs/solana-program-library/blob/08d9999f997a8bf38719679be9d572f119d0d960/token/program/src/state.rs#L90)
603603
address within each token account.

feature-proposal/program/tests/functional.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,13 @@ async fn test_basic() {
6868
banks_client.process_transaction(transaction).await.unwrap();
6969

7070
// Confirm feature id account is now funded and allocated, but not assigned
71-
let feature_id_acccount = banks_client
71+
let feature_id_account = banks_client
7272
.get_account(feature_id_address)
7373
.await
7474
.expect("success")
7575
.expect("some account");
76-
assert_eq!(feature_id_acccount.owner, system_program::id());
77-
assert_eq!(feature_id_acccount.data.len(), Feature::size_of());
76+
assert_eq!(feature_id_account.owner, system_program::id());
77+
assert_eq!(feature_id_account.data.len(), Feature::size_of());
7878

7979
// Confirm mint account state
8080
let mint = get_account_data::<spl_token::state::Mint>(&mut banks_client, mint_address)
@@ -115,12 +115,12 @@ async fn test_basic() {
115115
banks_client.process_transaction(transaction).await.unwrap();
116116

117117
// Confirm feature id account is not yet assigned
118-
let feature_id_acccount = banks_client
118+
let feature_id_account = banks_client
119119
.get_account(feature_id_address)
120120
.await
121121
.expect("success")
122122
.expect("some account");
123-
assert_eq!(feature_id_acccount.owner, system_program::id());
123+
assert_eq!(feature_id_account.owner, system_program::id());
124124

125125
assert!(matches!(
126126
get_account_data::<FeatureProposal>(&mut banks_client, feature_proposal.pubkey()).await,
@@ -158,12 +158,12 @@ async fn test_basic() {
158158
banks_client.process_transaction(transaction).await.unwrap();
159159

160160
// Confirm feature id account is now assigned
161-
let feature_id_acccount = banks_client
161+
let feature_id_account = banks_client
162162
.get_account(feature_id_address)
163163
.await
164164
.expect("success")
165165
.expect("some account");
166-
assert_eq!(feature_id_acccount.owner, feature::id());
166+
assert_eq!(feature_id_account.owner, feature::id());
167167

168168
// Confirm feature proposal account state
169169
assert!(matches!(

0 commit comments

Comments
 (0)