diff --git a/resources/test/rpc_schema.json b/resources/test/rpc_schema.json index 8eb9356c..1e1ec08a 100644 --- a/resources/test/rpc_schema.json +++ b/resources/test/rpc_schema.json @@ -5612,13 +5612,13 @@ "additionalProperties": false }, { - "description": "A `Package`.", + "description": "A smart contract `Package`.", "type": "object", "required": [ - "Package" + "SmartContract" ], "properties": { - "Package": { + "SmartContract": { "$ref": "#/components/schemas/Package" } }, diff --git a/resources/test/speculative_rpc_schema.json b/resources/test/speculative_rpc_schema.json index 2b66230e..e7a13fc0 100644 --- a/resources/test/speculative_rpc_schema.json +++ b/resources/test/speculative_rpc_schema.json @@ -1652,13 +1652,13 @@ "additionalProperties": false }, { - "description": "A `Package`.", + "description": "A smart contract `Package`.", "type": "object", "required": [ - "Package" + "SmartContract" ], "properties": { - "Package": { + "SmartContract": { "$ref": "#/components/schemas/Package" } }, @@ -3787,14 +3787,7 @@ "properties": { "hash_addr": { "description": "The identity of the entity that produced the message.", - "type": "array", - "items": { - "type": "integer", - "format": "uint8", - "minimum": 0.0 - }, - "maxItems": 32, - "minItems": 32 + "type": "string" }, "message": { "description": "The payload of the message.", diff --git a/rpc_sidecar/src/lib.rs b/rpc_sidecar/src/lib.rs index 6fd9c3eb..f4ca8bc7 100644 --- a/rpc_sidecar/src/lib.rs +++ b/rpc_sidecar/src/lib.rs @@ -246,7 +246,7 @@ mod tests { // schemars attribute too, indicating it is a hex-encoded string. See for example // `TransactionInvocationTarget::Package::addr`. /* - TODO -> reinstantiate this assertion once serialization ofhash_addr in Message structure in casper-types is fixed + TODO -> reinstantiate this assertion once serialization of DelegatorKind::Purse and UnbondKind::DelegatedPurse in casper-types is fixed let regex = Regex::new( r#"\s*"type":\s*"array",\s*"items":\s*\{\s*"type":\s*"integer",\s*"format":\s*"uint8",\s*"minimum":\s*0\.0\s*\},"# ).unwrap();