Skip to content

Commit a6e554d

Browse files
committed
memory store provider: Fixing loadConfig and saveConfig toLowerCase
1 parent 12de6ef commit a6e554d

File tree

1 file changed

+2
-2
lines changed
  • packages/wallet/core/src/state/local

1 file changed

+2
-2
lines changed

packages/wallet/core/src/state/local/memory.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,12 @@ export class MemoryStore implements Store {
5454
}
5555

5656
async loadConfig(imageHash: Hex.Hex): Promise<Config.Config | undefined> {
57-
const config = this.configs.get(imageHash)
57+
const config = this.configs.get(imageHash.toLowerCase() as Hex.Hex)
5858
return config ? this.deepCopy(config) : undefined
5959
}
6060

6161
async saveConfig(imageHash: Hex.Hex, config: Config.Config): Promise<void> {
62-
this.configs.set(imageHash, this.deepCopy(config))
62+
this.configs.set(imageHash.toLowerCase() as Hex.Hex, this.deepCopy(config))
6363
}
6464

6565
async loadCounterfactualWallet(

0 commit comments

Comments
 (0)