Open chetan-zilliqa opened 1 month ago
Thanks for fixing the previous issue. maybe a small change we can add in future.
ZQ2 Output (GetSmartContractCode_e24a6fb4_ZQ2.json):
{
"jsonrpc": "2.0",
"id": 1,
"error": {
"code": -32603,
"message": "Address does not exist: f66b7ec2dc39feee66434f5a48ebedd1c8bfe3be"
}
}
ZQ1 Output (GetSmartContractCode_e24a6fb4_ZQ1.json):
{
"error": {
"code": -5,
"data": null,
"message": "Address does not exist 0xf66b7ec2dc39feee66434f5a48ebedd1c8bfe3be"
},
"id": 1,
"jsonrpc": "2.0"
}
add data as null and 0x before the contract address.
Same applies to GetSmartContractInit
api.
ZQ2 Output (GetSmartContractInit_e24a6fb4_ZQ2.json):
{
"jsonrpc": "2.0",
"id": 1,
"error": {
"code": -32603,
"message": "Address does not exist"
}
}
ZQ1 Output (GetSmartContractInit_e24a6fb4_ZQ1.json):
{
"error": {
"code": -5,
"data": null,
"message": "Address does not exist"
},
"id": 1,
"jsonrpc": "2.0"
}
For a non existing address,
GetSmartContractCode
api should returnAddress does not exist <address>
rather than{ "jsonrpc": "2.0", "id": 1, "result": { "code": "", "type": "evm" } }
For eg: