Skip to content

Commit f47232f

Browse files
authored
Fix: SmartTransactionsController state should persist (#493)
* fix: set smartTransactionsState > persist equal to `true` * feat: enable persistence for SmartTransactionsController state SmartTransactionsController state now persisted across browser sessions by setting `persist: true` in `controllerMetadata`. Changes: - Set `persist: true` in SmartTransactionsController metadata - Add `updateState` public method for testing - Add test verifying state persistence between controller instances - Update initialization test to verify persistence enabled This allows features like migration scripts to access historical smart transaction data after browser restarts. * fix: remove attempt at testing * fix: remove `updateState`
1 parent c662316 commit f47232f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SmartTransactionsController.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ const controllerName = 'SmartTransactionsController';
7272

7373
const controllerMetadata = {
7474
smartTransactionsState: {
75-
persist: false,
75+
persist: true,
7676
anonymous: true,
7777
},
7878
};

0 commit comments

Comments
 (0)