MCPcopy Create free account
hub / github.com/solana-program/system / new

Method new

clients/rust/src/generated/instructions/allocate.rs:51–53  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

49
50impl AllocateInstructionData {
51 pub fn new() -> Self {
52 Self { discriminator: 8 }
53 }
54
55 pub(crate) fn try_to_vec(&self) -> Result<Vec<u8>, std::io::Error> {
56 borsh::to_vec(self)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected