Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sklppy88 committed Mar 28, 2024
1 parent ae232cf commit 95d2e36
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use dep::std::cmp::Eq;
use crate::{
address::{AztecAddress, EthAddress},
constants::{GENERATOR_INDEX__GLOBAL_VARIABLES, GLOBAL_VARIABLES_LENGTH},
traits::{Deserialize, Empty, Hash, Serialize}
traits::{Deserialize, Hash, Serialize}
};

// docs:start:global-variables
Expand Down Expand Up @@ -53,8 +53,8 @@ impl Eq for GlobalVariables {
}
}

impl Empty for GlobalVariables {
fn empty() -> Self {
impl Default for GlobalVariables {
fn default() -> Self {
Self {
chain_id: 0,
version: 0,
Expand All @@ -67,7 +67,7 @@ impl Empty for GlobalVariables {
}

#[test]
fn serialization_of_empty() {
fn serialization_of_default() {
let vars: GlobalVariables = dep::std::unsafe::zeroed();
let _serialized = vars.serialize();
let _deserialized = GlobalVariables::deserialize(_serialized);
Expand Down

0 comments on commit 95d2e36

Please sign in to comment.