Skip to content

Commit 84c3b8c

Browse files
committed
[REF] normalize chain value
1 parent 7615dc4 commit 84c3b8c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

packages/crypto-wallet-core/src/derivation/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ const derivers: { [chain: string]: IDeriver } = {
4545

4646
export class DeriverProxy {
4747
get(chain) {
48-
return derivers[chain];
48+
const normalizedChain = chain.toUpperCase();
49+
return derivers[normalizedChain];
4950
}
5051

5152
/**

packages/crypto-wallet-core/src/transactions/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ const providers = {
4747

4848
export class TransactionsProxy {
4949
get({ chain }) {
50-
return providers[chain];
50+
const normalizedChain = chain.toUpperCase();
51+
return providers[normalizedChain];
5152
}
5253

5354
create(params) {

0 commit comments

Comments
 (0)