Repository: icon-project/icon-rpc-server (language: python)

Issue:
merge to master from release/1.7.1
# Changes
- #162 
- #164 
- #165 


Discussion / hints:

Fix patch:
diff --git a/VERSION b/VERSION
index 943f9cb..f8a696c 100644
--- a/VERSION
+++ b/VERSION
@@ -1,1 +1,1 @@
-1.7.1
+1.7.2
diff --git a/iconrpcserver/dispatcher/validator.py b/iconrpcserver/dispatcher/validator.py
index 70b3bf4..d0794f5 100644
--- a/iconrpcserver/dispatcher/validator.py
+++ b/iconrpcserver/dispatcher/validator.py
@@ -15,6 +15,7 @@
 # limitations under the License.
 
 import re
+import copy
 from typing import Union, List, Dict, Optional
 
 from jsonrpcserver import status
@@ -677,11 +678,13 @@ def validate_jsonschema_v2(request: object):
     "required": ["jsonrpc", "method", "id", "params"]
 }
 
+debug_estimateStep_properties = copy.deepcopy(icx_sendTransaction_v3["properties"])
+debug_estimateStep_properties["params"]["required"] = ["version", "from", "to", "timestamp"]
 debug_estimateStep_v3: dict = {
     "title": "debug_estimateStep",
     "id": "https://github.com/icon-project/icon-rpc-server/blob/master/docs/icon-json-rpc-v3.md#debug_estimateStep",
     "type": "object",
-    "properties": icx_sendTransaction_v3["properties"],
+    "properties": debug_estimateStep_properties,
     "additionalProperties": False,
     "required": ["jsonrpc", "method", "id", "params"]
 }


Test patch:
diff --git a/tests/test_jsonschema_validator.py b/tests/test_jsonschema_validator.py
index 84881e4..884fb0b 100644
--- a/tests/test_jsonschema_validator.py
+++ b/tests/test_jsonschema_validator.py
@@ -613,7 +613,7 @@ def check_sendTransaction(self, full_data):
         self.check_valid(full_data=full_data)
 
         # check full_data['params']
-        required_keys = ['version', 'from', 'stepLimit', 'timestamp', 'nid', 'signature']
+        required_keys = ['version', 'from', 'to', 'timestamp']
         self.check_more(full_data=full_data, data=params, required_keys=required_keys)
 
         # check full_data['params']['data']