Closed devnet0x closed 1 month ago
To view this pull requests documentation preview, visit the following URL:
Documentation is deployed and generated using docs.page.
The changes in this pull request involve updates to configuration settings and code logic in the StarkNet counter example. Key modifications include changing the StarkNet provider's URI to a local server, updating contract and account addresses, and altering the test network identifier. Additionally, adjustments were made to the method of handling asynchronous calls in the UI, as well as dependency sources in the project configuration.
File Path | Change Summary |
---|---|
examples/starknet_counter/lib/services/counter_service.dart | Updated StarkNet provider configuration, contract address, and account details. |
examples/starknet_counter/lib/ui/counter.dart | Simplified asynchronous handling in _increaseCount , _increaseCountBy , and _decreaseCount methods. |
examples/starknet_counter/pubspec_overrides.yaml | Changed dependency sources from Git to local paths for starknet and starknet_provider . |
packages/starknet/lib/src/static_config.dart | Updated testNet variable from SN_GOERLI to SN_SEPOLIA . |
packages/starknet_provider/lib/src/model/invoke_transaction.freezed.dart | Changed default version parameter from '0x01' to '0x1' . |
packages/starknet_provider/lib/src/model/invoke_transaction.dart | Changed default version parameter from '0x01' to '0x1' . |
🐰 In the meadow, changes bloom,
A counter service sheds its gloom.
From Goerli's grasp to Sepolia's light,
With local paths, the code takes flight.
Async no more, the UI flows,
In the world of StarkNet, progress grows! 🌼
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?
Thanks a lot for your contribution! Could you please fix the failed signer test: I think it's related to your fix on invoke transaction version.
Fixed. It was related to a hardcoded signature in the test file (signed with SN_GOERLI instead of SN_SEPOLIA). Algo fixed the melos test devnet port because test was looking for devnet in 5050 and setup was loading devnet in 3030.
Thanks for your contribution
Fix Starknet Counter example for devnet and sepolia networks. Close issue #399
Summary by CodeRabbit
New Features
Bug Fixes
Chores