Closed ckeshava closed 4 weeks ago
The changes introduce a new constant, _MAX_ASSET_PRICE
, representing the maximum value for a 64-bit unsigned integer. This constant is used in the test_all_fields
method of the TestSetOracle
class within the tests/integration/transactions/test_set_oracle.py
file. A new instance of PriceData
is created, utilizing this constant for the asset_price
of a BTC to INR currency pair. Additionally, a new assertion checks that the asset price is correctly serialized as a hexadecimal string in the response.
File Path | Change Summary |
---|---|
tests/integration/transactions/test_set_oracle.py | Added constant _MAX_ASSET_PRICE , updated test_all_fields to include a new PriceData instance and a new assertion for hexadecimal serialization of the maximum asset price. |
In the land of code where rabbits play,
A constant was born to brighten the day.
With prices so high, it stands tall and bright,
Hexadecimal dreams in the moon's gentle light.
Hopping through tests, we cheer and we sing,
For every new change, joy it will bring! 🐇✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
This change ensures that OracleSet transaction allows the maximum admissible value in the AssetPrice field.
Type of Change
Did you update CHANGELOG.md?
Summary by CodeRabbit
New Features
Bug Fixes