File tree Expand file tree Collapse file tree
runtime-sdk/src/modules/rofl Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -311,8 +311,7 @@ export class RoflClient {
311311 * it will trigger an automatic on-chain registration refresh. Keys are automatically
312312 * namespaced with 'net.oasis.app.' when published on-chain.
313313 *
314- * Metadata is validated against runtime-configured limits (typically max 64 pairs,
315- * max key size 1024 bytes, max value size 16KB).
314+ * Metadata is validated against runtime-configured limits.
316315 *
317316 * @param metadata - Dictionary of metadata key-value pairs to set
318317 * @returns Promise that resolves when metadata is successfully updated
Original file line number Diff line number Diff line change @@ -26,7 +26,9 @@ pub trait Config: 'static {
2626 const GAS_COST_CALL_DERIVE_KEY : u64 = 10_000 ;
2727
2828 /// Maximum number of metadata key-value pairs.
29- const MAX_METADATA_PAIRS : usize = 64 ;
29+ /// TODO: Enforce cumulative metadata size limit instead of fixed per-pair sizes.
30+ /// See https://github.com/oasisprotocol/oasis-sdk/issues/2489.
31+ const MAX_METADATA_PAIRS : usize = 128 ;
3032 /// Maximum metadata key size.
3133 const MAX_METADATA_KEY_SIZE : usize = 1024 ;
3234 /// Maximum metadata value size.
You can’t perform that action at this time.
0 commit comments