From 4f170141a1426a41e017e01b920ab8dcba498474 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Kami=C5=84ski?= Date: Wed, 3 Jul 2024 15:47:41 +0200 Subject: [PATCH] fix address types when necessary --- api/starknet_api_openrpc.json | 16 ++++++++-------- api/starknet_trace_api_openrpc.json | 2 +- api/starknet_write_api.json | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/api/starknet_api_openrpc.json b/api/starknet_api_openrpc.json index e3806a6..84a0ecf 100644 --- a/api/starknet_api_openrpc.json +++ b/api/starknet_api_openrpc.json @@ -1419,7 +1419,7 @@ "sequencer_address": { "title": "Sequencer address", "description": "The StarkNet identity of the sequencer submitting this block", - "$ref": "#/components/schemas/FELT" + "$ref": "#/components/schemas/ADDRESS" }, "l1_gas_price": { "title": "L1 gas price", @@ -1474,7 +1474,7 @@ "sequencer_address": { "title": "Sequencer address", "description": "The StarkNet identity of the sequencer submitting this block", - "$ref": "#/components/schemas/FELT" + "$ref": "#/components/schemas/ADDRESS" }, "l1_gas_price": { "title": "L1 gas price", @@ -1635,7 +1635,7 @@ "address": { "title": "Address", "description": "The address of the contract", - "$ref": "#/components/schemas/FELT" + "$ref": "#/components/schemas/ADDRESS" }, "class_hash": { "title": "Class hash", @@ -1652,7 +1652,7 @@ "address": { "title": "Address", "description": "The contract address for which the storage changed", - "$ref": "#/components/schemas/FELT" + "$ref": "#/components/schemas/ADDRESS" }, "storage_entries": { "title": "Storage entries", @@ -2811,7 +2811,7 @@ "contract_address": { "title": "Contract address", "description": "The address of the deployed contract", - "$ref": "#/components/schemas/FELT" + "$ref": "#/components/schemas/ADDRESS" } }, "required": ["type", "contract_address"] @@ -2837,7 +2837,7 @@ "contract_address": { "title": "Contract address", "description": "The address of the deployed contract", - "$ref": "#/components/schemas/FELT" + "$ref": "#/components/schemas/ADDRESS" } }, "required": ["type", "contract_address"] @@ -2926,12 +2926,12 @@ "properties": { "from_address": { "description": "The address of the L2 contract sending the message", - "$ref": "#/components/schemas/FELT" + "$ref": "#/components/schemas/ADDRESS" }, "to_address": { "title": "To address", "description": "The target L1 address the message is sent to", - "$ref": "#/components/schemas/FELT" + "$ref": "#/components/schemas/ETH_ADDRESS" }, "payload": { "description": "The payload of the message", diff --git a/api/starknet_trace_api_openrpc.json b/api/starknet_trace_api_openrpc.json index 6612296..79ab77c 100644 --- a/api/starknet_trace_api_openrpc.json +++ b/api/starknet_trace_api_openrpc.json @@ -307,7 +307,7 @@ "caller_address": { "title": "Caller Address", "description": "The address of the invoking contract. 0 for the root invocation", - "$ref": "#/components/schemas/FELT" + "$ref": "#/components/schemas/ADDRESS" }, "class_hash": { "title": "Class hash", diff --git a/api/starknet_write_api.json b/api/starknet_write_api.json index ae23029..ecfcbf2 100644 --- a/api/starknet_write_api.json +++ b/api/starknet_write_api.json @@ -160,7 +160,7 @@ }, "contract_address": { "title": "The address of the new contract", - "$ref": "#/components/schemas/FELT" + "$ref": "#/components/schemas/ADDRESS" } }, "required": ["transaction_hash", "contract_address"]