Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/v2' into feature-gas-tank
Browse files Browse the repository at this point in the history
  • Loading branch information
Maskln committed Feb 12, 2025
2 parents 9e372be + 427fc33 commit 6391749
Show file tree
Hide file tree
Showing 28 changed files with 539 additions and 285 deletions.
34 changes: 0 additions & 34 deletions contracts/EthSofiaNft.sol

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "2.41.0",
"version": "2.42.0",
"name": "ambire-common",
"description": "Common ground for the Ambire apps",
"scripts": {
Expand Down
11 changes: 8 additions & 3 deletions src/controllers/accountAdder/accountAdder.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const providers = Object.fromEntries(
const key1to11BasicAccPublicAddresses = Array.from(
{ length: 11 },
(_, i) =>
new Wallet(getPrivateKeyFromSeed(process.env.SEED, i, BIP44_STANDARD_DERIVATION_TEMPLATE))
new Wallet(getPrivateKeyFromSeed(process.env.SEED, null, i, BIP44_STANDARD_DERIVATION_TEMPLATE))
.address
)

Expand All @@ -53,6 +53,7 @@ const key1to11BasicAccUsedForSmartAccKeysOnlyPublicAddresses = Array.from(
new Wallet(
getPrivateKeyFromSeed(
process.env.SEED,
null,
i + SMART_ACCOUNT_SIGNER_KEY_DERIVATION_OFFSET,
BIP44_STANDARD_DERIVATION_TEMPLATE
)
Expand All @@ -62,16 +63,19 @@ const key1to11BasicAccUsedForSmartAccKeysOnlyPublicAddresses = Array.from(
const key1PublicAddress = key1to11BasicAccPublicAddresses[0]
const key1PrivateKey = getPrivateKeyFromSeed(
process.env.SEED,
null,
0,
BIP44_STANDARD_DERIVATION_TEMPLATE
)
const key1UsedForSmartAccKeysOnlyPrivateKey = getPrivateKeyFromSeed(
process.env.SEED,
null,
SMART_ACCOUNT_SIGNER_KEY_DERIVATION_OFFSET,
BIP44_STANDARD_DERIVATION_TEMPLATE
)
const key2UsedForSmartAccKeysOnlyPrivateKey = getPrivateKeyFromSeed(
process.env.SEED,
null,
1 + SMART_ACCOUNT_SIGNER_KEY_DERIVATION_OFFSET,
BIP44_STANDARD_DERIVATION_TEMPLATE
)
Expand Down Expand Up @@ -453,7 +457,7 @@ describe('AccountAdder', () => {
)
const key1to5BasicAccPublicAddresses = Array.from(
{ length: pageSize },
(_, i) => new Wallet(getPrivateKeyFromSeed(process.env.SEED, i, value)).address
(_, i) => new Wallet(getPrivateKeyFromSeed(process.env.SEED, null, i, value)).address
)
basicAccountsOnFirstPage.forEach((x) => {
const address = x.account.addr
Expand All @@ -467,7 +471,8 @@ describe('AccountAdder', () => {
)
const key6to10BasicAccPublicAddresses = Array.from(
{ length: pageSize },
(_, i) => new Wallet(getPrivateKeyFromSeed(process.env.SEED, i + pageSize, value)).address
(_, i) =>
new Wallet(getPrivateKeyFromSeed(process.env.SEED, null, i + pageSize, value)).address
)
basicAccountsOnSecondPage.forEach((x) => {
const address = x.account.addr
Expand Down
Loading

0 comments on commit 6391749

Please sign in to comment.