diff --git a/crates/view/src/storage.rs b/crates/view/src/storage.rs index 182136b402..0c1ab6eb6a 100644 --- a/crates/view/src/storage.rs +++ b/crates/view/src/storage.rs @@ -220,6 +220,13 @@ impl Storage { [dao_params_bytes], )?; + let distributions_params_bytes = + &DistributionsParameters::encode_to_vec(¶ms.distributions_params)[..]; + tx.execute( + "INSERT INTO distributions_params (bytes) VALUES (?1)", + [distributions_params_bytes], + )?; + let governance_params_bytes = &GovernanceParameters::encode_to_vec(¶ms.governance_params)[..]; tx.execute( @@ -1376,6 +1383,12 @@ impl Storage { [dao_params_bytes], )?; + let distributions_params_bytes = &DistributionsParameters::encode_to_vec(¶ms.distributions_params)[..]; + dbtx.execute( + "UPDATE distributions_params SET bytes = ?1", + [distributions_params_bytes], + )?; + let governance_params_bytes = &GovernanceParameters::encode_to_vec(¶ms.governance_params)[..]; dbtx.execute(