Skip to content
This repository has been archived by the owner on Aug 14, 2023. It is now read-only.

Commit

Permalink
Renaming App to Account
Browse files Browse the repository at this point in the history
  • Loading branch information
YaronWittenstein committed Jul 14, 2021
1 parent 4e9c54e commit 6adf158
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions crates/types/src/app.rs → crates/types/src/account.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ use crate::TemplateAddr;

/// An in-memory representation of an app.
#[derive(PartialEq, Clone)]
pub struct App {
/// `App`'s name
pub struct Account {
/// [`Account`]'s name
pub name: String,

/// `Address` of the `Template`, the App is being spawned from.
/// Address of the `Template`, the [`Account`] is being spawned from.
pub template_addr: TemplateAddr,
}

#[doc(hidden)]
impl App {
impl Account {
pub fn new(template_addr: TemplateAddr, name: String) -> Self {
Self {
name,
Expand All @@ -30,9 +30,9 @@ impl App {
}
}

impl fmt::Debug for App {
impl fmt::Debug for Account {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
f.debug_struct("App")
f.debug_struct("Account")
.field("name", &self.name())
.field("template", self.template_addr().inner())
.finish()
Expand Down
4 changes: 2 additions & 2 deletions crates/types/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ mod macros;

mod address;
mod address_of;
mod app;
mod account;
mod error;
mod spawn_app;
mod state;
Expand Down Expand Up @@ -42,7 +42,7 @@ pub use receipt::{
pub use address::{Address, AppAddr, DeployerAddr, SpawnerAddr, TemplateAddr};
pub use address_of::AddressOf;

pub use app::App;
pub use account::App;
pub use spawn_app::SpawnApp;
pub use state::State;
pub use template::{
Expand Down

0 comments on commit 6adf158

Please sign in to comment.