Skip to content

Fix/417 420 duplicate imports and methods - #550

Merged
BigBen-7 merged 3 commits into
Lead-Studios:mainfrom
abdoolyaro:fix/417-420-duplicate-imports-and-methods
Aug 28, 2026
Merged

Fix/417 420 duplicate imports and methods#550
BigBen-7 merged 3 commits into
Lead-Studios:mainfrom
abdoolyaro:fix/417-420-duplicate-imports-and-methods

Conversation

@abdoolyaro

Copy link
Copy Markdown
Contributor

closes #417
closes #418
closes #419
closes #420

…etProtocolFee

admin.ts had three separate merge-artifact duplications, all
stemming from the same botched merge that combined five parallel
admin feature branches (setProtocolFee, updateTokenMetadata,
enableWhitelist/whitelistAddress, forceRefundEscrow,
dividendDistribute) into one commit. The corruption wasn't three
clean isolated duplicate pairs as each issue describes in isolation
-- doc comments and method bodies from different methods were
spliced together, so the three fixes could not be separated into
independent commits without reconstructing overlapping regions of
the same corrupted block in each one.

Rebuilt the file from the last known-clean single-feature commit
(setProtocolFee, 53a516f) and reinserted each of the other four
methods once, using the clean implementation from its own
originating feature commit (forceRefundEscrow @ 41c9e70,
dividendDistribute @ 780f454, updateTokenMetadata @ 1255ed7,
enableWhitelist/whitelistAddress @ 4552911):

- dividendDistribute: kept the single-arg (totalAmount: bigint)
  overload, matching the contract's distribute_dividend(e, admin,
  total_amount) signature; removed the two-arg
  (recipients, totalAmount) overload.
- forceRefundEscrow: kept the writeCall-based implementation; removed
  the duplicate.
- setProtocolFee: kept the single implementation; removed the
  duplicate.

Verified: no method name appears more than once, brace count is
balanced, and `npx tsc --noEmit` reports zero errors for this file.

Closes Lead-Studios#418
Closes Lead-Studios#419
Closes Lead-Studios#420
src/modules/splitter.ts had two consecutive import statements both
pulling addressToScVal from ../utils/scval, a merge artifact that
caused a TypeScript duplicate identifier compile error. Merged into
a single import.

Closes Lead-Studios#417
@drips-wave

drips-wave Bot commented Aug 28, 2026

Copy link
Copy Markdown

@abdoolyaro Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

src/modules/splitter.ts had two consecutive import statements both
pulling addressToScVal from ../utils/scval, a merge artifact that
caused a TypeScript duplicate identifier compile error. Merged into
a single import.

Deviates from Lead-Studios#417's literal wording: the issue's suggested merged
import list included stringToScVal, but that symbol is not used
anywhere else in this file, so keeping it fails
@typescript-eslint/no-unused-vars in CI. Dropped it instead.

Closes Lead-Studios#417
@abdoolyaro
abdoolyaro force-pushed the fix/417-420-duplicate-imports-and-methods branch from 4897e30 to 3cab33c Compare August 28, 2026 11:00
@BigBen-7
BigBen-7 merged commit ad6baca into Lead-Studios:main Aug 28, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment