Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 10, 2025

Description

Added metaTxApiId optional property to PreMintButton component to enable custom Biconomy API ID configuration for meta-transactions.

Changes:

  • Added metaTxApiId?: string to component props and type definitions (lines 24, 28, 47)
  • Passed metaTxApiId to relayBiconomyMetaTransaction via metaTxConfig.apiId override (lines 84-86)

This allows consumers to specify a different Biconomy API ID per button instance when the default configuration is insufficient.

How to test

import { PreMintButton } from "@bosonprotocol/react-kit";

// Use custom Biconomy API ID for meta-transaction
<PreMintButton
  offerId="123"
  amount={5}
  metaTxApiId="custom-api-id-here"
  onSuccess={(receipt) => console.log("Success", receipt)}
/>

Verify the custom API ID is used in the Biconomy relay call when meta-transactions are enabled.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI changed the title [WIP] Fix: add metaTxApiId property to PreMintButton fix: add metaTxApiId property to PreMintButton Nov 10, 2025
Copilot AI requested a review from levalleux-ludo November 10, 2025 16:36
@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@levalleux-ludo levalleux-ludo marked this pull request as ready for review November 10, 2025 16:57
@levalleux-ludo levalleux-ludo merged commit 9b53ee7 into fix-permint-meta-tx Nov 10, 2025
1 of 2 checks passed
@levalleux-ludo levalleux-ludo deleted the copilot/sub-pr-988 branch November 10, 2025 16:57
levalleux-ludo added a commit that referenced this pull request Nov 10, 2025
* fix: add metaTxApiId property to PreMintButton

* Initial plan (#991)

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants