Skip to content

Commit

Permalink
meta - more Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
andrei-marinica committed Oct 10, 2023
1 parent 3a5f09f commit 2242b9b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions framework/meta/src/cmd/contract/output_contract/oc_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,9 @@ impl std::fmt::Debug for OutputContract {
.field("main", &self.main)
.field("config_name", &self.contract_id)
.field("public_name", &self.contract_name)
.field("num-constructors", &self.abi.constructors.len())
.field("num-endpoints", &self.abi.endpoints.len())
.field("settings", &self.settings)
.finish()
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ pub use oc_parse_stack_size::*;
use crate::ei::EIVersion;

/// Collection of flags, specified in the multicontract config.
#[derive(Clone, PartialEq, Eq)]
#[derive(Clone, PartialEq, Eq, Debug)]
pub struct OutputContractSettings {
/// External view contracts are just readers of data from another contract.
pub external_view: bool,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#[derive(Default, Clone, PartialEq, Eq)]
#[derive(Default, Clone, Debug, PartialEq, Eq)]
pub enum ContractAllocator {
/// No allocation is allowed. Any attempt causes `signalError` to be thrown.
#[default]
Expand Down
2 changes: 1 addition & 1 deletion framework/meta/src/ei/ei_version.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/// The version of the SC environment interface (EI), it deals with the VM hooks available at a certain point in time.
///
/// It is not tied to the version of the VM, hence the different numbering.
#[derive(Clone, Copy, Default, PartialEq, Eq)]
#[derive(Clone, Copy, Default, Debug, PartialEq, Eq)]
pub enum EIVersion {
/// This is not necessarily the first version of the EI,
/// but rather the oldest version when we started keeping track of the EI.
Expand Down

0 comments on commit 2242b9b

Please sign in to comment.