Skip to content

Conversation

@madninja
Copy link
Member

@madninja madninja commented Apr 2, 2025

No need to pass in payer, we can just use Pubkey::default to get transaction lengths for packing

No need to pass in payer, we can just use Pubkey::default to get transaction lengths for packing
@madninja madninja requested review from ChewingGlass and Copilot April 2, 2025 02:56
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR removes the payer parameter from transaction packing functions and related calls, using Pubkey::default wherever applicable.

  • Removed the explicit payer parameter from pack_instructions_into_transactions in both client and transaction utilities.
  • Updated calls to task bundle functions in the queue module by eliminating the payer reference.
  • Modified construction of transactions in solana-transaction-utils to rely on default pubkeys instead of an explicit payer.

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
tuktuk-cli/src/cmd/task.rs Removed the payer parameter when packing instructions.
tuktuk-cli/src/client.rs Updated to pass None for payer when creating transactions.
solana-transaction-utils/src/queue.rs Eliminated the payer parameter from task bundle additions.
solana-transaction-utils/src/pack.rs Removed the payer parameter from several functions and updated usages to utilize Pubkey::default.

@ChewingGlass ChewingGlass merged commit 5b738ee into main Apr 7, 2025
4 checks passed
@ChewingGlass ChewingGlass deleted the madninja/pack_no_payer branch April 7, 2025 20:46
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.

3 participants