8370 Commits
Author SHA1 Message Date
gregfromstl 7e242602e9 fix(wallet): handle errors when connecting with open access ecosystem (#3545)
<!-- start pr-codex -->

## PR-Codex overview
This PR focuses on fixing errors related to connecting with an open access ecosystem by updating permissions logic in the `in-app-account.ts` file.

### Detailed summary
- Updated permissions logic to include partnerId check for ecosystem connectivity.

> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`

<!-- end pr-codex -->
2024-06-28 22:18:35 +00:00
gregfromstl 85f2f6d2bd fix(ts): properly disconnect wallet connect (#3539)
<!-- start pr-codex -->

## PR-Codex overview
This PR focuses on fixing WalletConnect client disconnections and improving error handling.

### Detailed summary
- Added a delay in testing for WalletConnect client disconnections
- Updated the `onDisconnect` function in `WalletConnectReceiverScreen.tsx` to handle loading state and query invalidation
- Improved error handling in `wallet-connect/receiver/index.ts` by catching errors during disconnect
- Added a function to remove sessions in `disconnectWalletConnectSession`
- Updated `disconnectWalletConnectSession` to handle errors gracefully

> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`

<!-- end pr-codex -->
2024-06-28 21:50:37 +00:00
gregfromstl 6704fa8870 fix(mint): add ability to override transaction properties in mintTo functions (#3543)
This pull request introduces a minor update to the thirdweb library, specifically adding the feature to override transaction properties in the `mintTo` functions for ERC1155, ERC20, and ERC721 tokens. Additionally, it refines the ENS avatar resolution tests by removing an offchain record test that relies on a secret key, improving overall test reliability.

---
2024-06-28 21:02:33 +00:00
jnsdls d2c1038845 [Feature] Add new Dashboard sidebar components and ecosystem wallets link (#3531)
<!-- start pr-codex -->

## PR-Codex overview
This PR updates the dashboard layout and styling, adds Ecosystem Wallet features, and refactors navigation components.

### Detailed summary
- Added "Ecosystem Wallets" section to dashboard sidebar
- Updated button styles in UI components
- Implemented Ecosystem Wallet page with alerts and buttons
- Refactored navigation components for better usability

> The following files were skipped due to too many changes: `apps/dashboard/src/app/(dashboard)/dashboard/components/sidebar/sidebar.client.tsx`

> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`

<!-- end pr-codex -->
2024-06-28 20:20:14 +00:00
gregfromstl 517ecff0b2 fix(sepolia): rename Sepolia native currency symbol to ETH (#3542) 2024-06-28 20:15:10 +00:00
gregfromstl cf2d1b8df3 feat(utils): add shortenHex function to utils for shortening hexadecimal strings (#3534) 2024-06-28 00:35:21 +00:00
gregfromstl e4b6391cb3 fix(transaction): export StoredTransaction type from transaction-store.js (#3533)
### TL;DR

This pull request modifies the `transaction-store.ts` module by exporting the type `StoredTransaction`, making it available for external use.

### What changed?

- The type `StoredTransaction` was exported from `transaction-store.ts`
- Updated the export statement for `StoredTransaction` in `transaction.ts`

### How to test?

1. Ensure that the module `transaction-store.ts` exports the type `StoredTransaction`.
2. Verify that importing `StoredTransaction` from the module works correctly in another file.

### Why make this change?

This change was made to facilitate the external utilization of the `StoredTransaction` type.

---

<!-- start pr-codex -->

---

## PR-Codex overview
The focus of this PR is to add a `StoredTransaction` type to the `thirdweb` package.

### Detailed summary
- Added `StoredTransaction` type to `transaction-store.ts`
- Exported `StoredTransaction` type in `transaction.ts`

> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`

<!-- end pr-codex -->
2024-06-28 00:29:52 +00:00
arcoraven 07ec487320 fix: bigint crash on tooltip (#3532)
## Problem solved

Fix error: "Do not know how to serialize bigint" by casting bigint to number when used as a string.

<!-- start pr-codex -->

---

## PR-Codex overview
This PR updates the README file to provide instructions for starting a local dev server and modifies a query key in a TypeScript file for improved functionality.

### Detailed summary
- Updated README.md to include instructions for starting a local dev server
- Modified query key in contract-subscriptions-table.tsx for better functionality

> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`

<!-- end pr-codex -->
2024-06-27 22:29:12 +00:00
gregfromstl 18c3d3be9f fix(react): remove problematic console errors (#3529)
These console.error logs don't represent an actual error state, and trigger error monitoring services for users
2024-06-27 19:06:27 +00:00
Jonas Danielsandgithub-actions[bot] 5dcc8c57ab Version Packages (#3426)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@thirdweb-dev/[email protected] [email protected]
2024-06-27 10:27:48 -07:00
gregfromstl f9f5250b58 feat(auth): fetch ecosystem auth options from server (#3528)
<!-- start pr-codex -->

## PR-Codex overview
The focus of this PR is to refactor ecosystem wallet related functions, update UI components, and integrate new auth options fetching mechanism.

### Detailed summary
- Refactored ecosystem wallet related functions for better clarity and consistency.
- Updated UI components in various files for improved user experience.
- Integrated a new mechanism to fetch auth options for ecosystem wallets.
- Added a loading screen component for better user feedback during data fetching.

> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`

<!-- end pr-codex -->
2024-06-27 17:12:13 +00:00
Jonas Daniels 2ccb59e3fc [Chore] Remove concurrency limit from build:release script in package.json (#3527) 2024-06-26 21:48:23 -07:00
Jonas Daniels d908851504 [Chore] Rename .changeset/v4-changesets-apply-later directory to .v4-changesets-apply-later for consistency (#3526) 2024-06-26 21:36:09 -07:00
jnsdls 6b6c03563e [Chore] Update dependencies and refactor changesets directory structure (#3525)
### TL;DR

This PR adjusts the `.changeset/config.json` to update dependency settings and reorganizes changeset markdown files under a new directory.

### What changed?

- Removed `fixed` and `linked` fields from the `.changeset/config.json`.
- Updated the `ignore` array in `config.json` to include additional thirdweb-dev packages.
- Moved existing `.changeset/*.md` files to a newly created `v4-changesets-apply-later` directory.

### How to test?

Verify that dependency updates and changeset file reorganization are reflected correctly in the `.changeset/config.json` and file structure.

### Why make this change?

We are temporarily only releasing v5 packages (while figuring a path forward regarding `@thirdweb-dev/react` with npm).

---
2024-06-27 04:21:19 +00:00
0xFirekeeper 0751a6c6ea Unity 4.16.6 (#3522)
<!-- start pr-codex -->

## PR-Codex overview
This PR updates the X_SDK_VERSION in `thirdweb-bridge.ts` from "4.16.5" to "4.16.6".

### Detailed summary
- Updated X_SDK_VERSION from "4.16.5" to "4.16.6" in `thirdweb-bridge.ts`.

> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`

<!-- end pr-codex -->
2024-06-27 04:15:19 +00:00
gregfromstl 4dae68796e fix(ts): in-app wallet user op signatures (#3507)
### TL;DR

This PR updates the message handling in the in-app-account module of the thirdweb package. Specifically, it modifies the message decoding process and removes an unused import.

### What changed?

- Modified the IFrameWallet class to handle messages that are bytes or strings.
- Removed the `uint8ArrayToString` import which was no longer needed.

### How to test?

1. Run the existing test suite to ensure all tests pass.
2. Manually test the in-app wallet functionality to validate the message handling changes.

### Why make this change?

To improve the robustness and maintainability of the in-app-account module in the thirdweb package by cleaning up the code and ensuring proper handling of different message types.

---
2024-06-27 03:58:32 +00:00
gregfromstl c330d0d815 fix(ens): enhance ENS resolution tests and error handling (#3513)
<!-- start pr-codex -->

## PR-Codex overview
This PR enhances ENS resolution in `thirdweb` extension. It now returns null if no ENS exists for an address.

### Detailed summary
- Updated `resolveName` to return null if no ENS exists
- Added error handling to catch specific error code
- Updated tests to reflect changes in ENS resolution behavior

> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`

<!-- end pr-codex -->
2024-06-27 03:41:20 +00:00
MananTank 16ea2bc684 Fix openWindow not working inside iframe (#3521)
<!-- start pr-codex -->

## PR-Codex overview
The focus of this PR is to fix the wallet app not opening when using `ConnectButton` inside an iframe.

### Detailed summary
- Updated `WalletConnectConnection.tsx` to handle opening wallet app inside iframes
- Modified `openWindow.ts` to address issues with `window.open` on iOS and WebViews

> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`

<!-- end pr-codex -->
2024-06-27 03:25:53 +00:00
jnsdls d974db533a [Chore] Update zksync-ethers to 5.9.0 and modify useCustomContractDeployMutation (#3523)
<!-- start pr-codex -->

## PR-Codex overview
This PR updates `zksync-ethers` to version `5.9.0`, adds new assertions in `hooks.ts`, and introduces a fake provider for `zkSigner` initialization.

### Detailed summary
- Updated `zksync-ethers` to `5.9.0`
- Added assertions for `signer` and `walletAddress` in `hooks.ts`
- Introduced a fake provider for `zkSigner` initialization

> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`

<!-- end pr-codex -->
2024-06-26 23:04:01 +00:00
jnsdls 7be7b6ff84 [Fix] Prevent overriding gasLimit and maxFeePerGas settings if already present (#3519)
Respect gas overrides if they are passed in both the SDK and various wallet implementations by checking if gasLimit, maxFeePerGas, and maxPriorityFeePerGas are already set before applying default values. Added necessary type annotations and improved import statements for better code clarity.

---

<!-- start pr-codex -->

## PR-Codex overview
The focus of this PR is to respect gas overrides passed in and avoid overriding existing values in transactions.

### Detailed summary
- Respect gas overrides if passed in
- Update `WrappedSigner` and `EthersSigner` classes to handle gas overrides
- Update `UserWallet` to set default gas values only if not already set

> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`

<!-- end pr-codex -->
2024-06-26 11:52:40 +00:00
Jonas Daniels 3979ff0238 [Chore] Add concurrency limit to build scripts and update turbo.json configuration (#3518) 2024-06-26 01:53:38 -07:00
Jonas Daniels 1e9baa688f [Chore] Remove unnecessary checkout step in release-nightly workflow and update import references (#3517) 2024-06-26 00:37:53 -07:00
Jonas Daniels 39455a096a [Chore] Upgrade TypeScript dependency to 5.5.2 across multiple packages (#3516) 2024-06-26 00:00:06 -07:00
Jonas Daniels 40aac265fe [Chore] Upgrade typescript dependency to 5.5.2 and update release-nightly workflow (#3515) 2024-06-25 23:58:16 -07:00
Jonas Daniels 370c686d37 [Chore] Downgrade TypeScript dependency to 5.4.5 (#3514) 2024-06-25 23:31:56 -07:00
Jonas Daniels 0708d4e71b [Chore] Enhance tsconfig to explicitly set noUncheckedIndexedAccess and update build:release script (#3512) 2024-06-25 23:05:16 -07:00
Jonas Daniels cde0c1741d [Chore] Rename Chain type alias to InternalChain and re-export as Chain (#3510) 2024-06-25 22:47:44 -07:00
Jonas Daniels ed3a04f20b [Chore] Enhance tsconfig.json in react-core to resolve JSON modules (#3509) 2024-06-25 22:13:48 -07:00
Jonas Daniels 2dac941399 [Chore] Add type annotations to SwapFees and SwapTransactionsScreen components (#3508) 2024-06-25 22:04:22 -07:00
Jonas Daniels fbb1493f1e [Chore] Enhance tsconfig and error handling across multiple packages (#3506) 2024-06-25 21:43:50 -07:00
Jonas Daniels 724ef108dc [Chore] Update release-nightly workflow to remove unnecessary checkout step (#3505) 2024-06-25 21:02:21 -07:00
Jonas Daniels af84d47bfb [Chore] Update wallets tsconfig.json to use dynamic configDir paths (#3504) 2024-06-25 20:49:38 -07:00
Jonas Daniels 4f462607e6 [Chore] Upgrade typescript dependency to 5.5.2 (#3503) 2024-06-25 20:05:50 -07:00
Jonas Daniels 3e41742213 [Chore] Update CI workflows to use latest Ubuntu version (#3502) 2024-06-25 19:20:30 -07:00
Jonas Daniels ba8a2c147f [Chore] Add @ts-nocheck to md5 and crypto-js-compat to suppress TypeScript errors (#3501) 2024-06-25 19:18:00 -07:00
Jonas Daniels 7b70919507 [Chore] Update .changeset/config.json to add new package and adjust build scripts (#3500) 2024-06-25 18:57:36 -07:00
Jonas Daniels d5dc5e5ff2 [Chore] Update esbuild dependency to version 0.21.5 (#3497) 2024-06-25 17:25:18 -07:00
Jonas Daniels aa72b675ac [Chore] Update .changeset/config.json to remove deprecated entries (#3496) 2024-06-25 17:07:08 -07:00
Jonas Daniels 3ee99e59d8 [Chore] Update configs and scripts (#3495) 2024-06-25 17:00:42 -07:00
kumaryash90 28ed28a8e9 ZkSync addresses update (#3492)
<!-- start pr-codex -->

## PR-Codex overview
This PR updates ZkCandy addresses for the Sepolia Testnet and ZKSync Era Mainnet.

### Detailed summary
- Added new addresses for various contracts on the Sepolia Testnet for ZkCandy.
- Updated addresses for DropERC721 on the ZKSync Era Mainnet.

> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`

<!-- end pr-codex -->
2024-06-25 22:13:27 +00:00
gregfromstl 9b46a730b3 fix(transaction): update EIP721 to EIP712 naming in getEip721Domain and prepare-transaction (#3480)
<!-- start pr-codex -->

## PR-Codex overview
This PR updates transaction options and serialization to use EIP712 instead of EIP721.

### Detailed summary
- Renamed `EIP721TransactionOptions` to `EIP712TransactionOptions`
- Renamed `EIP721SerializedTransaction` to `EIP712SerializedTransaction`
- Updated function parameters and return types accordingly

> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`

<!-- end pr-codex -->
2024-06-25 21:57:36 +00:00
dependabot 598654ee75 build(deps): bump @typescript-eslint/parser from 7.13.1 to 7.14.1 (#3468)
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 7.13.1 to 7.14.1.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/typescript-eslint/typescript-eslint/releases"><code>@​typescript-eslint/parser</code>'s releases</a>.</em></p>
<blockquote>
<h2>v7.14.1</h2>
<h2>7.14.1 (2024-06-24)</h2>
<h3>🩹 Fixes</h3>
<ul>
<li><strong>eslint-plugin:</strong> [prefer-nullish-coalescing] treat enums and literals as their underlying primitive types (<a href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/9376">#9376</a>)</li>
<li><strong>eslint-plugin:</strong> [prefer-nullish-coalescing] ensure ternary fix does not remove parens (<a href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/9380">#9380</a>)</li>
</ul>
<h3>❤️  Thank You</h3>
<ul>
<li>Jake Bailey <a href="https://github.com/jakebailey"><code>@​jakebailey</code></a></li>
</ul>
<p>You can read about our <a href="https://main--typescript-eslint.netlify.app/users/versioning">versioning strategy</a> and <a href="https://main--typescript-eslint.netlify.app/users/releases">releases</a> on our website.</p>
<h2>v7.14.0</h2>
<h2>7.14.0 (2024-06-24)</h2>
<h3>🚀 Features</h3>
<ul>
<li>support TypeScript 5.5 (<a href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/9397">#9397</a>)</li>
<li><strong>ast-spec:</strong> tighter types and documentation for declaration/* (<a href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/9211">#9211</a>)</li>
</ul>
<h3>🩹 Fixes</h3>
<ul>
<li>keep warnAbountTSVersion in sync with package.json (<a href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/9400">#9400</a>)</li>
<li><strong>eslint-plugin:</strong> [no-extraneous-class] handle abstract members (<a href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/9367">#9367</a>)</li>
<li><strong>eslint-plugin:</strong> [prefer-nullish-coalescing] handle intersected primitive types (<a href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/9378">#9378</a>)</li>
<li><strong>eslint-plugin:</strong> [no-invalid-this] support AccessorProperty (<a href="https://redirect.github.com/typescript-eslint/typescript-eslint/pull/9411">#9411</a>)</li>
</ul>
<h3>❤️  Thank You</h3>
<ul>
<li>Brad Zacher <a href="https://github.com/bradzacher"><code>@​bradzacher</code></a></li>
<li>cm-ayf <a href="https://github.com/cm-ayf"><code>@​cm-ayf</code></a></li>
<li>Jake Bailey <a href="https://github.com/jakebailey"><code>@​jakebailey</code></a></li>
<li>James Zhan</li>
<li>Joshua Chen</li>
<li>yoshi2no <a href="https://github.com/yoshi2no"><code>@​yoshi2no</code></a></li>
</ul>
<p>You can read about our <a href="https://main--typescript-eslint.netlify.app/users/versioning">versioning strategy</a> and <a href="https://main--typescript-eslint.netlify.app/users/releases">releases</a> on our website.</p>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md"><code>@​typescript-eslint/parser</code>'s changelog</a>.</em></p>
<blockquote>
<h2>7.14.1 (2024-06-24)</h2>
<p>This was a version bump only for parser to align it with other projects, there were no code changes.</p>
<p>You can read about our <a href="https://main--typescript-eslint.netlify.app/users/versioning">versioning strategy</a> and <a href="https://main--typescript-eslint.netlify.app/users/releases">releases</a> on our website.</p>
<h2>7.14.0 (2024-06-24)</h2>
<h3>🚀 Features</h3>
<ul>
<li>support TypeScript 5.5</li>
</ul>
<h3>❤️  Thank You</h3>
<ul>
<li>Brad Zacher</li>
<li>cm-ayf</li>
<li>Jake Bailey</li>
<li>James Zhan</li>
<li>Joshua Chen</li>
<li>yoshi2no</li>
</ul>
<p>You can read about our <a href="https://main--typescript-eslint.netlify.app/users/versioning">versioning strategy</a> and <a href="https://main--typescript-eslint.netlify.app/users/releases">releases</a> on our website.</p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/typescript-eslint/typescript-eslint/commit/b4fe94f7fcb4d6e631b0cd626ea48f3b88e16a33"><code>b4fe94f</code></a> chore(release): publish 7.14.1</li>
<li><a href="https://github.com/typescript-eslint/typescript-eslint/commit/dfc44691400b22634c8acf4666b5e7e4ba1fee9a"><code>dfc4469</code></a> chore(release): publish 7.14.0</li>
<li>See full diff in <a href="https://github.com/typescript-eslint/typescript-eslint/commits/v7.14.1/packages/parser">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=@typescript-eslint/parser&package-manager=npm_and_yarn&previous-version=7.13.1&new-version=7.14.1)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

</details>

<!-- start pr-codex -->

---

## PR-Codex overview
This PR updates TypeScript-related packages to the latest versions for enhanced linting and type checking.

### Detailed summary
- Updated `@typescript-eslint/parser` to `7.14.1` in multiple files
- Updated various related packages to maintain compatibility with TypeScript versions
- Added new versions for `@typescript-eslint/scope-manager`, `@typescript-eslint/types`, and other related packages

> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`

<!-- end pr-codex -->
2024-06-25 21:49:30 +00:00
Jonas Daniels 518ec9d90c [Chore] Update labeler.yml to use 'changed-files' key for paths (#3493) 2024-06-25 14:26:33 -07:00
github-actions[bot] 6b0a96dcc7 chore(chains): update chains (#3491)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-06-25 14:19:47 -07:00
dependabot[bot] 1def50f871 build(deps-dev): bump @swc/core from 1.5.24 to 1.6.5 (#3470)
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-25 14:18:27 -07:00
dependabot[bot] addd1bebcc build(deps): bump actions/labeler from 4 to 5 (#3473)
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-25 14:18:14 -07:00
dependabot[bot] 87176a688b build(deps-dev): bump mocha and @types/mocha (#3483)
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-25 14:18:01 -07:00
jnsdls 75a2736962 [Chore] Add conditional check in PayEmbed-disconnected test using TW_SECRET_KEY (#3490)
### TL;DR
Update PayEmbed and PayEmbed-disconnected tests to include conditional running based on TW_SECRET_KEY.

### What changed?
- Added conditional checks for TW_SECRET_KEY in PayEmbed-disconnected.test.tsx and PayEmbed.test.tsx
- Ensured tests run only if TW_SECRET_KEY is defined

### How to test?
1. Ensure TW_SECRET_KEY is set in your environment
2. Run the updated tests
3. Verify that the tests only execute if TW_SECRET_KEY is present

### Why make this change?
To add more robust control over test execution based on the presence of secret keys.

---

<!-- start pr-codex -->

---

## PR-Codex overview
The focus of this PR is to refactor test files for `PayEmbed` component by using `describe.runIf` to conditionally run tests based on the environment secret key.

### Detailed summary
- Refactored test files for `PayEmbed` component to conditionally run tests based on the secret key environment variable using `describe.runIf`.
- Updated test cases to improve readability and maintainability.

> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`

<!-- end pr-codex -->
2024-06-25 21:02:49 +00:00
gregfromstl edd904bd9e fix(auth): add warning and improve parameter checks in verifySignature (#3488)
### TL;DR
Added a warning that gets triggered once when the EOA signature verification fails and neither the chain nor the client parameter is provided in the verifySignature function. This is crucial to guide users on setting up smart accounts properly.

### What changed?
- Introduced a `warningTriggered` flag to ensure the warning is only logged once.
- Added a warning message to notify about missing chain and client parameters when EOA signature verification fails.
- Updated `isVerifyContractWalletSignatureParams` to explicitly check for undefined values in chain and client parameters.

### How to test?
1. Call the `verifySignature` function without providing the `chain` and `client` parameters.
2. Observe the console for the warning message.
3. Ensure the warning triggers only once even with multiple calls to `verifySignature` without the required parameters.

### Why make this change?
This change improves the developer experience by providing clear guidance when critical parameters are missing for using smart accounts with the Auth module. This helps in debugging and ensures proper setup for smart accounts.

---

<!-- start pr-codex -->

---

## PR-Codex overview
The focus of this PR is to add a warning message when verifying a signature without a chain or client provided.

### Detailed summary
- Added a warning message when verifying a signature without a chain or client
- Updated the `isVerifyContractWalletSignatureParams` function to check for `options.chain` and `options.client` values

> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`

<!-- end pr-codex -->
2024-06-25 20:10:06 +00:00
kien-ngo 88070422ff Export getClaimConditionById for Drop1155 (#3481)
<!-- start pr-codex -->

## PR-Codex overview
This PR focuses on exporting `getClaimConditionById` for Drop1155 in the `erc1155.ts` file.

### Detailed summary
- Export `getClaimConditionById` for Drop1155
- Import `GetClaimConditionByIdParams` from generated file

> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`

<!-- end pr-codex -->
2024-06-25 19:39:36 +00:00