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

Method new

clients/rust/src/generated/instructions/transfer_sol.rs:57–59  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

55
56impl TransferSolInstructionData {
57 pub fn new() -> Self {
58 Self { discriminator: 2 }
59 }
60
61 pub(crate) fn try_to_vec(&self) -> Result<Vec<u8>, std::io::Error> {
62 borsh::to_vec(self)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected