Closed oleksandrSydorenkoJ closed 1 year ago
Will put in the documentation
Not having spaces is good since it speeds up Solidity parses
Re-checked on schain:3.16.1-beta.2
The problem is on the client side - need to manually remove empty spaces from the string.
========== Calculating PoW number ==========
PoW number: 1621
========== Sending request to Oracle ==========
Request >>> {'id': 83, 'jsonrpc': '2.0', 'method': 'oracle_submitRequest', 'params': ['{"cid":<CID of skale-chain >, "uri":"eth://","jsps":["/result"],"encoding":"json","ethApi":"eth_call","params":[{"from":"0x0000000000000000000000000000000000000000","to":"0x07865c6e87b9f70255377e024ace6630c1eaa37f","data":"0x70a082310000000000000000000000002170ed0880ac9a755fd29b2688956bd959f933f8","gas":"0xfffff"},"latest"],"time":1681819683000,"pow":1621}']}
Response <<< {'error': {'code': 33, 'data': None, 'message': 'Invalid oracle spec in submitOracleRequest Oracle check failed: PoW did not verify'}, 'id': 83, 'jsonrpc': '2.0'}
Versions: schain:3.16.1-beta.1
Preconditions: Active schain medium type Oracle-demo
Steps to reproduce:
Expected state: Skaled should handle the empty places in the request and trim them.
Actaul state: Oracle request failed with "Invalid oracle spec" error
Logs: