MCPcopy Create free account
hub / github.com/cutupdev/Solana-RWA-Smart-Contract / initialize

Function initialize

programs/rwa-tokenization/src/lib.rs:20–22  ·  view source on GitHub ↗

Initialize the global RWA tokenization configuration

(ctx: Context<Initialize>, params: InitializeParams)

Source from the content-addressed store, hash-verified

18
19 /// Initialize the global RWA tokenization configuration
20 pub fn initialize(ctx: Context<Initialize>, params: InitializeParams) -> Result<()> {
21 ctx.accounts.process(params)
22 }
23
24 /// Register a new real-world asset
25 pub fn register_asset(ctx: Context<RegisterAsset>, args: RegisterAssetArgs) -> Result<()> {

Callers

nothing calls this directly

Calls 1

processMethod · 0.45

Tested by

no test coverage detected