Skip to content

fix: dynamic ABI encoding/decoding for string, bytes, arrays (#198)#5289

Closed
SyntaxHQDEV wants to merge 2 commits into
ClankerNation:mainfrom
SyntaxHQDEV:fix/issue-198
Closed

fix: dynamic ABI encoding/decoding for string, bytes, arrays (#198)#5289
SyntaxHQDEV wants to merge 2 commits into
ClankerNation:mainfrom
SyntaxHQDEV:fix/issue-198

Conversation

@SyntaxHQDEV

Copy link
Copy Markdown

#198 [$9k] Dynamic ABI Encoding/Decoding

  • Added encodeString, encodeBytes with proper offset-based ABI layout
  • Added decodeString, decodeBytes, decodeDynamicArray for dynamic types
  • Added unified decodeParameter(data, type, offset) function
  • Fixed encodeUint256 negative value validation
  • Fixed decodeUint256 left-padding for short slot values
  • Proper head/tail separation for dynamic params in encodeParams

/bounty 9000
Closes #198

@github-actions

github-actions Bot commented Jun 8, 2026

Copy link
Copy Markdown

Unfortunately the changes in this PR didn't fully resolve the issue. Please rework your solution and submit a new pull request within 2 hours.

Make sure to review the acceptance criteria in the linked issue and verify all conditions are met before resubmitting.

@github-actions github-actions Bot closed this Jun 8, 2026
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.

[ Bounty $9k ] [ SDK ] Fix encoding.ts decodeParameter doesn't handle dynamic types — backwards compat

1 participant