BlogDocs

[Dashboard] Hide ERC721 Claim button if viewing ERC1155 Drop(#4104)

Merged
Merging
kien/fix-claimbutton
(
cdb2970
) into
main
(
dcfc936
)
0%
IMPROVEMENTS
0
REGRESSIONS
0
UNTOUCHED
9
NEW
0
DROPPED
0
IGNORED
0

Benchmarks

Passed

encode tx (contract abi)
packages/thirdweb/src/transaction/actions/encode.bench.ts::encode tx (contract abi)
+1%
540.5 µs
534.1 µs
encode tx (human readable)
packages/thirdweb/src/transaction/actions/encode.bench.ts::encode tx (human readable)
+1%
532.6 µs
527.5 µs
encode tx (json abi)
packages/thirdweb/src/transaction/actions/encode.bench.ts::encode tx (json abi)
0%
319.8 µs
320.3 µs
units:toUnits("40", 18)
packages/thirdweb/src/utils/units.bench.ts::units:toUnits("40", 18)
0%
33.9 µs
34 µs
units:toTokens(40000000000000000000n, 18)
packages/thirdweb/src/utils/units.bench.ts::units:toTokens(40000000000000000000n, 18)
0%
185.8 µs
186.2 µs
keccakId
packages/thirdweb/src/utils/any-evm/keccak-id.bench.ts::keccakId
0%
1.3 ms
1.3 ms
units:toTokens(12345678901234567890n, 18)
packages/thirdweb/src/utils/units.bench.ts::units:toTokens(12345678901234567890n, 18)
0%
26.1 µs
26.2 µs
units:toUnits("40.0", 18)
packages/thirdweb/src/utils/units.bench.ts::units:toUnits("40.0", 18)
0%
34.5 µs
34.6 µs
encode tx (prepared method)
packages/thirdweb/src/transaction/actions/encode.bench.ts::encode tx (prepared method)
-1%
478.1 µs
484.4 µs

Commits

Click on a commit to change the comparison range
base
main
dcfc936
0%
ClaimButton to handle approval for ERC20 (#3846) ## Problem solved Short description of the bug fixed or feature added ## Changes made - [ ] Public API changes: list the public API changes made if any - [ ] Internal API changes: explain the internal logic changes ## How to test - [ ] Automated tests: link to unit test file - [ ] Manual tests: step by step instructions on how to test ## Contributor NFT Paste in your wallet address below and we will airdrop you a special NFT when your pull request is merged. ```Address: ``` <!-- start pr-codex --> --- ## PR-Codex overview The focus of this PR is to handle ERC20 approval for the ClaimButton component in the Thirdweb package. ### Detailed summary - Added `getPayMetadata` function to handle custom Pay metadata - Updated `ClaimButton` component to handle ERC20 approval - Utilized hooks for contract interaction and transaction handling > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
cdb2970
2 months ago
by kien-ngo
ResourcesHomePricingDocsBlogGitHubChangelog