Skip to content

Commit

Permalink
feat: add headless wallet port configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterYinusa committed Dec 11, 2024
1 parent da51f24 commit 6ce7997
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
"author": "Assert Equals Ltd",
"license": "MIT",
"dependencies": {
"@assert-equals/headless-wallet": "^0.0.9",
"@assert-equals/headless-wallet": "^0.0.11",
"adm-zip": "^0.5.16",
"axios": "^1.7.7",
"chalk": "^4.1.2",
Expand Down
2 changes: 1 addition & 1 deletion src/session/dapp-driver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ export class DappDriver {
DappDriver.Instance.Wallet = HEADLESS;
if (DappDriver.Instance.Framework === PLAYWRIGHT) {
const page = DappDriver.Instance.Page as Page;
await installHeadlessWallet({ page });
await installHeadlessWallet({ page, port: options.extension.port });
} else if (DappDriver.Instance.Framework === WEBDRIVER) {
const driver = DappDriver.Instance.Driver as WebDriver;
await installHeadlessWallet({ driver });
Expand Down
1 change: 1 addition & 0 deletions src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export type WalletOptions = {
wallet: Wallet;
path?: string;
seed?: string;
port?: number;
};

export type BrowserOptions = {
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
css-tree "^2.3.1"
is-potential-custom-element-name "^1.0.1"

"@assert-equals/headless-wallet@^0.0.9":
version "0.0.9"
resolved "https://registry.yarnpkg.com/@assert-equals/headless-wallet/-/headless-wallet-0.0.9.tgz#d6d29506261f9bd225f522789a22b5216a32e5ad"
integrity sha512-3xCiNDYkJorihnFP2IE59NgL61gkXgNC9CEt7yG3kaKVAy3v23Fdv9gfdtK20oVAuJXoKOTg1uPy8Xxk5bgyrQ==
"@assert-equals/headless-wallet@^0.0.11":
version "0.0.11"
resolved "https://registry.yarnpkg.com/@assert-equals/headless-wallet/-/headless-wallet-0.0.11.tgz#97504f566ddba6a9b596d6938a0c2d5bd172b67d"
integrity sha512-L2ZpBdQqzyjnkaoKGNN2KBVLCuvyPEchVU7sCnjUxGOmiCAV9NFk/eIJ+vnlBhpkAXLW7e6HxM2U5OudCAMlrw==

"@babel/code-frame@^7.0.0":
version "7.24.2"
Expand Down

0 comments on commit 6ce7997

Please sign in to comment.