-
Notifications
You must be signed in to change notification settings - Fork 77
Conversation
Update the schema used to validate felts to the most recent version included in starknet-specs. This schema is less strict, and allows felts that are not zero-padded.
4bfbef1
to
95dd1bc
Compare
Looks like the response validation doesn't like the regex I added (copied from starknet-specs) and returns an error for every request. {
"error": {
"code": -32603,
"message": "Devnet tried to return invalid value: \"Unevaluated properties are not allowed ('block_hash', 'block_number', 'new_root', 'parent_hash', 'sequencer_address', 'status', 'timestamp', 'transactions' were unexpected)\""
},
"id": 0,
"jsonrpc": "2.0"
} |
I can see the regex used was based on the recent change in spec, however, it looks like it might be missing some parentheses. I'm unsure if the regex should maybe be |
@ClementWalter @penovicp EDIT: Sorry, that's how it's supposed to be, I had a wrong number in my head |
Personally I'm leaning towards penovicp's idea implement in Clement's #413 |
Agree! Let's keep it simple! |
The error originates when validating the response of calling |
@mikiw Can you take a look |
I'll take a look now. |
I got these test results. Checking how to fix it. |
In tests we use dummy data like |
I made a 2fecdd9 commit with some test fixes and now just 3 tests are failing in this test file. |
Actually, I reverted that, seems that fix can be made only by modifying the rpc_felt wrapper. |
Superseded by #467 |
Usage related changes
Update the schema used to validate felts to the most recent version
included in starknet-specs.
This schema is less strict, and allows felts that are not zero-padded.
Fix #401
Development related changes
No changes
Checklist:
./scripts/format.sh
./scripts/lint.sh
./scripts/test.sh