frontier
frontier copied to clipboard
Remove deny_unknown_fields attribute from `CallRequest`.
This is to allow unknown fields in an eth call as geth and ganache do.
Sample call:
curl http://localhost:9944 -H "Content-Type:application/json;charset=utf-8" -d \
'{
"jsonrpc": "2.0",
"id": 1,
"method": "eth_estimateGas",
"params":[{
"to": "0xDFF8E772A9B212dc4FbA19fa650B440C5c7fd7fd",
"data": "0xc47f00270000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000543686c6f65000000000000000000000000000000000000000000000000000000",
"hello": "world"
}]
}'
The response before the change:
{"jsonrpc":"2.0","error":{"code":-32602,"message":"unknown field `hello` at line 1 column 279"},"id":1}
The response after the change:
{"jsonrpc":"2.0","result":"0x5759","id":1}
Kindly reminder