Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decrease Batch Transfer gas usage 7%, reduce contract deployment gas by 21% #144

Open
wants to merge 12 commits into
base: main
Choose a base branch
from
Prev Previous commit
Next Next commit
add old cap, reduce bulk mint
tenthirtyone committed Jul 29, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit d98ffd7822bb69c00f4b460a251bb1d2dfeff6e8
3 changes: 2 additions & 1 deletion test/ERC721BatchTransfer.test.ts
Original file line number Diff line number Diff line change
@@ -36,7 +36,7 @@ describe('ERC721BatchTransfer', function () {

await nftContract.setApprovalForAll(transferContract.address, true);

await nftContract.mintBatch(owner.address, 5000);
await nftContract.mintBatch(owner.address, 1000);

for (let i = 0; i < 5; i++) {
const tokenOwner = await nftContract.ownerOf(i);
@@ -57,6 +57,7 @@ describe('ERC721BatchTransfer', function () {
});

it.skip('batchTransferToSingleWallet max Batch', async () => {
// old cap was 777
const batchAmount = 833;
const tx = await transferContract.batchTransferToSingleWallet(
nftContract.address,