Skip to content

Commit aacc343

Browse files
committed
Remove rentEpoch from the JSON RPC API
1 parent 785455b commit aacc343

File tree

4 files changed

+1
-9
lines changed

4 files changed

+1
-9
lines changed

account-decoder-client-types/src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ pub struct UiAccount {
2020
pub data: UiAccountData,
2121
pub owner: String,
2222
pub executable: bool,
23-
pub rent_epoch: u64,
2423
pub space: Option<u64>,
2524
}
2625

@@ -78,7 +77,7 @@ impl UiAccount {
7877
data,
7978
Pubkey::from_str(&self.owner).ok()?,
8079
self.executable,
81-
self.rent_epoch,
80+
u64::MAX,
8281
))
8382
}
8483
}

account-decoder/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ pub fn encode_ui_account<T: ReadableAccount>(
9696
data,
9797
owner: account.owner().to_string(),
9898
executable: account.executable(),
99-
rent_epoch: account.rent_epoch(),
10099
space: Some(space as u64),
101100
}
102101
}

cli-output/src/cli_output.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -236,11 +236,6 @@ impl fmt::Display for CliAccount {
236236
"Executable:",
237237
&self.keyed_account.account.executable.to_string(),
238238
)?;
239-
writeln_name_value(
240-
f,
241-
"Rent Epoch:",
242-
&self.keyed_account.account.rent_epoch.to_string(),
243-
)?;
244239
Ok(())
245240
}
246241
}

rpc-client/src/mock_sender.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,6 @@ pub(crate) fn mock_encoded_account(pubkey: &Pubkey) -> UiAccount {
502502
data: UiAccountData::Binary("".to_string(), UiAccountEncoding::Base64),
503503
owner: pubkey.to_string(),
504504
executable: false,
505-
rent_epoch: 0,
506505
space: Some(0),
507506
}
508507
}

0 commit comments

Comments
 (0)