Skip to content

fix: sendTransactionWithDelegation fails for value transfers#30

Merged
jeffsmale90 merged 1 commit into
mainfrom
fix/send-value-tx-with-delegation
Jul 11, 2025
Merged

fix: sendTransactionWithDelegation fails for value transfers#30
jeffsmale90 merged 1 commit into
mainfrom
fix/send-value-tx-with-delegation

Conversation

@jeffsmale90

Copy link
Copy Markdown
Collaborator

📝 Description

When value is included in the arguments to sendTransactionWithDelegation, this is encoded into the calldata. This change fixes a bug where this was left in the arguments passed to sendTransaction resulting in value being included in the call to redeemDelegation, and a failing transaction.

🔄 What Changed?

  • value is no longer included in the args passed to sendTransaction
  • unit test is added to ensure that the value is not passed through
  • integration test added to ensure that the transaction is successful

🧪 How to Test?

The integration test outlines the end-behaviour being tested.

🔗 Related Issues

Link to related issues:
Closes #28

@jeffsmale90 jeffsmale90 requested a review from a team as a code owner July 9, 2025 03:50
@jeffsmale90 jeffsmale90 force-pushed the fix/send-value-tx-with-delegation branch from 935f685 to 264202b Compare July 9, 2025 04:02
cursor[bot]

This comment was marked as outdated.

@jeffsmale90 jeffsmale90 marked this pull request as draft July 9, 2025 21:53
@jeffsmale90 jeffsmale90 force-pushed the fix/send-value-tx-with-delegation branch 2 times, most recently from 274f5f2 to b298719 Compare July 11, 2025 01:51
@jeffsmale90 jeffsmale90 marked this pull request as ready for review July 11, 2025 01:51
…sulting transaction args, resulting in failed transaction
@jeffsmale90 jeffsmale90 force-pushed the fix/send-value-tx-with-delegation branch from b298719 to 6d9143c Compare July 11, 2025 03:24
@jeffsmale90 jeffsmale90 merged commit 41626fc into main Jul 11, 2025
16 checks passed
@jeffsmale90 jeffsmale90 deleted the fix/send-value-tx-with-delegation branch July 11, 2025 04:44
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.

sendTransactionWithDelegation fails with value transfer

2 participants