-
Notifications
You must be signed in to change notification settings - Fork 5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix 2d array bug of abiSchemaToJsonSchema in web3-validator (#6836)
* fix 2d array bug of abiSchemaToJsonSchema in web3-validator * fix 2d array bug of abiSchemaToJsonSchema in web3-validator(add comments) * fix abi json schema test case: - 123 cannot be uint - test case("nested tuple object in nested array") has a wrong data structure of tuple[][3] * fix function abiSchemaToJsonSchema in iterating over arraySizes array to each dimension * FIX: 1. fix function convertToZod to distinguish tuple and array, add checks in maxItems & minItems 2. revert abiSchemaToJsonSchema of utils and fix 3. add testcases in validator.validate * UPDATE: contract test --------- Co-authored-by: Yi Zhang <yi.y.zhang@maplequad.com>
- Loading branch information
Showing
6 changed files
with
504 additions
and
415 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
1f81ff0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Benchmark
processingTx
9621
ops/sec (±3.59%
)9301
ops/sec (±4.81%
)0.97
processingContractDeploy
41138
ops/sec (±6.53%
)39129
ops/sec (±7.62%
)0.95
processingContractMethodSend
20161
ops/sec (±6.65%
)19443
ops/sec (±5.19%
)0.96
processingContractMethodCall
40476
ops/sec (±5.92%
)38971
ops/sec (±6.34%
)0.96
abiEncode
44693
ops/sec (±6.40%
)44252
ops/sec (±6.92%
)0.99
abiDecode
30015
ops/sec (±7.77%
)30419
ops/sec (±8.89%
)1.01
sign
1587
ops/sec (±3.24%
)1656
ops/sec (±4.08%
)1.04
verify
382
ops/sec (±0.40%
)373
ops/sec (±0.78%
)0.98
This comment was automatically generated by workflow using github-action-benchmark.