Fix RefCell borrow panic and add unit tests #9
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/refcell-panic-and-unit-tests"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Signal<GatewayAccountId>to decouple render-time reads fromRc<RefCell<HeroLedgerClient>>, eliminating "RefCell already mutably borrowed" panics during async gateway operationsCloses #7
Closes #8
Changes (9 files, +348 −45)
crates/frontend/src/signing.rsGatewayAccountIdnewtype + 10 testscrates/frontend/src/main.rsActIdentitycrates/frontend/src/heroledger.rsaccount_id_string, cleaned warningscrates/frontend/src/pages/prepare_pre_register.rscrates/frontend/src/components/nodes.rsresolve_hero_accountcrates/backend/src/api.rscrates/shared/src/lib.rscrates/shared/Cargo.tomlCargo.lockTest plan
make check— 0 warnings across all 3 cratesmake lint(clippy) — cleancargo fmt --check— cleanmake test— 33/33 tests passdx serve— app loads, no RefCell panic in browserWIP: Fix RefCell borrow panic and add unit teststo Fix RefCell borrow panic and add unit tests