@rocketh/core 0.17.16 → 0.17.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/account.js +2 -2
- package/dist/account.js.map +1 -1
- package/package.json +1 -1
- package/src/account.ts +2 -2
package/dist/account.js
CHANGED
|
@@ -20,14 +20,14 @@
|
|
|
20
20
|
*/
|
|
21
21
|
export function resolveAccount(account, env) {
|
|
22
22
|
if (account.startsWith('0x')) {
|
|
23
|
-
return account;
|
|
23
|
+
return account.toLowerCase();
|
|
24
24
|
}
|
|
25
25
|
if (env.namedAccounts) {
|
|
26
26
|
const address = env.namedAccounts[account];
|
|
27
27
|
if (!address) {
|
|
28
28
|
throw new Error(`no address for ${account}`);
|
|
29
29
|
}
|
|
30
|
-
return address;
|
|
30
|
+
return address.toLowerCase();
|
|
31
31
|
}
|
|
32
32
|
throw new Error(`no accounts setup, cannot get address for ${account}`);
|
|
33
33
|
}
|
package/dist/account.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account.js","sourceRoot":"","sources":["../src/account.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,UAAU,cAAc,CAC7B,OAAgC,EAChC,GAAuC;IAEvC,IAAI,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC;QAC9B,OAAO,
|
|
1
|
+
{"version":3,"file":"account.js","sourceRoot":"","sources":["../src/account.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,UAAU,cAAc,CAC7B,OAAgC,EAChC,GAAuC;IAEvC,IAAI,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC;QAC9B,OAAO,OAAO,CAAC,WAAW,EAAmB,CAAC;IAC/C,CAAC;IAED,IAAI,GAAG,CAAC,aAAa,EAAE,CAAC;QACvB,MAAM,OAAO,GAAG,GAAG,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QAC3C,IAAI,CAAC,OAAO,EAAE,CAAC;YACd,MAAM,IAAI,KAAK,CAAC,kBAAkB,OAAO,EAAE,CAAC,CAAC;QAC9C,CAAC;QACD,OAAO,OAAO,CAAC,WAAW,EAAmB,CAAC;IAC/C,CAAC;IAED,MAAM,IAAI,KAAK,CAAC,6CAA6C,OAAO,EAAE,CAAC,CAAC;AACzE,CAAC;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,UAAU,yBAAyB,CACxC,OAAgC,EAChC,GAAuC;IAEvC,IAAI,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC;QAC9B,OAAO,OAAwB,CAAC;IACjC,CAAC;IAED,IAAI,GAAG,CAAC,aAAa,EAAE,CAAC;QACvB,OAAO,GAAG,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;IACnC,CAAC;IAED,OAAO,SAAS,CAAC;AAClB,CAAC"}
|
package/package.json
CHANGED
package/src/account.ts
CHANGED
|
@@ -26,7 +26,7 @@ export function resolveAccount(
|
|
|
26
26
|
env: Pick<Environment, 'namedAccounts'>,
|
|
27
27
|
): `0x${string}` {
|
|
28
28
|
if (account.startsWith('0x')) {
|
|
29
|
-
return account as `0x${string}`;
|
|
29
|
+
return account.toLowerCase() as `0x${string}`;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
if (env.namedAccounts) {
|
|
@@ -34,7 +34,7 @@ export function resolveAccount(
|
|
|
34
34
|
if (!address) {
|
|
35
35
|
throw new Error(`no address for ${account}`);
|
|
36
36
|
}
|
|
37
|
-
return address
|
|
37
|
+
return address.toLowerCase() as `0x${string}`;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
throw new Error(`no accounts setup, cannot get address for ${account}`);
|