|
1 | 1 | import { Wallet as CoreWallet, Envelope, Signers, State } from '@0xsequence/sequence-core' |
2 | | -import { Config, GenericTree, Payload, SessionConfig } from '@0xsequence/sequence-primitives' |
| 2 | +import { Config, GenericTree, Payload, SessionConfig, Permission } from '@0xsequence/sequence-primitives' |
3 | 3 | import { Address, Hex } from 'ox' |
4 | 4 | import { AuthCommitment } from '../dbs/auth-commitments' |
5 | 5 | import { AuthCodePkceHandler } from './handlers/authcode-pkce' |
@@ -377,16 +377,16 @@ export class Wallets { |
377 | 377 | } |
378 | 378 | if (!args.noSessionManager) { |
379 | 379 | // Calculate image hash with the identity signer |
380 | | - const sessionManagerTopology = SessionConfig.emptySessionsTopology(loginSignerAddress) |
| 380 | + const sessionsTopology = SessionConfig.emptySessionsTopology(loginSignerAddress) |
381 | 381 | // Store this tree in the state provider |
382 | | - const sessionConfigTree = SessionConfig.sessionsTopologyToConfigurationTree(sessionManagerTopology) |
383 | | - this.shared.sequence.stateProvider.saveTree(sessionConfigTree) |
| 382 | + const sessionsConfigTree = SessionConfig.sessionsTopologyToConfigurationTree(sessionsTopology) |
| 383 | + this.shared.sequence.stateProvider.saveTree(sessionsConfigTree) |
384 | 384 | // Prepare the configuration leaf |
385 | | - const sessionImageHash = GenericTree.hash(sessionConfigTree) |
| 385 | + const sessionsImageHash = GenericTree.hash(sessionsConfigTree) |
386 | 386 | modules = [ |
387 | 387 | { |
388 | | - ...this.shared.sequence.defaultSessionTopology, |
389 | | - imageHash: sessionImageHash, |
| 388 | + ...this.shared.sequence.defaultSessionsTopology, |
| 389 | + imageHash: sessionsImageHash, |
390 | 390 | }, |
391 | 391 | modules, |
392 | 392 | ] |
|
0 commit comments