Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
jolestar committed Jul 13, 2023
1 parent 6c0c8dc commit d47a1cb
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions crates/rooch-types/src/account.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,12 @@ use serde::{Deserialize, Serialize};
/// Account is the rust representation of the account in rooch_framework
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct Account {
pub authentication_key: Vec<u8>,
pub sequence_number: u64,
}

impl Account {
pub fn new(authentication_key: Vec<u8>, sequence_number: u64) -> Self {
Self {
authentication_key,
sequence_number,
}
pub fn new(sequence_number: u64) -> Self {
Self { sequence_number }
}
}

Expand All @@ -31,9 +27,6 @@ impl MoveStructType for Account {
impl MoveStructState for Account {
fn struct_layout() -> move_core_types::value::MoveStructLayout {
move_core_types::value::MoveStructLayout::new(vec![
move_core_types::value::MoveTypeLayout::Vector(Box::new(
move_core_types::value::MoveTypeLayout::U8,
)),
move_core_types::value::MoveTypeLayout::U64,
])
}
Expand Down

0 comments on commit d47a1cb

Please sign in to comment.