mirror of
https://github.com/agent-substrate/substrate.git
synced 2026-11-10 10:13:50 +08:00
Populate default fields during both Create and Update RPC calls so that resources are stored with defaults instead of zero values. This is a much cleaner approach as it means that a) consumers don't need to be aware of the default value and b) default values can potentially change. Only ActorTemplate had defaults, but added default functions for all resources so that all RPC handlers are wired up.