Derive Macro near_sdk::PanicOnDefault [−][src]
#[derive(PanicOnDefault)]
PanicOnDefault
generates implementation for Default
trait that panics with the following
message The contract is not initialized
when default()
is called.
This is a helpful macro in case the contract is required to be initialized with either init
or
init_once
.