I need help with that code. Can anyone pls help me out ??
mod p{
#[ink(storage)]
pub struct Foobar {
/// Stores a single `bool` value on the storage.
value: bool,
}
impl Foobar {
#[ink(constructor)]
pub fn default() -> Self {
Self::new(Default::default())
}
}
#[ink_e2e::test]
async fn default_works(mut client: ink_e2e::Client<C, E>) -> E2EResult<()> {
// Given
let constructor = FoobarRef::default();
Ok(())
}
}
what this line actually means. I have not created anything with the name FoobarRef but we are using it.
and if FoobarRef is the same as Foobbar what is stored in a variable named constructor and how can I print it?
let constructor = FoobarRef::default();