Skip to content

Remove CreateSignedTransaction deadcode#2479

Open
l0r1s wants to merge 4 commits intodevnet-readyfrom
remove-create-signed-tx-deadcode
Open

Remove CreateSignedTransaction deadcode#2479
l0r1s wants to merge 4 commits intodevnet-readyfrom
remove-create-signed-tx-deadcode

Conversation

@l0r1s
Copy link
Collaborator

@l0r1s l0r1s commented Mar 2, 2026

Summary

  • Remove dead CreateSignedTransaction impl and trait bounds — drand only uses send_unsigned_transaction (unsigned extrinsics with a signed payload), so create_signed_transaction was never called
  • Replace deprecated CreateInherent/new_inherent with CreateBare/new_bare across all mock files and runtime

Details

pallet_drand's offchain worker submits pulses via signer.send_unsigned_transaction(), which creates bare extrinsics through CreateBare::create_bare(). The CreateSignedTransaction trait and its implementations (runtime + 6 test mocks) were satisfying a trait bound but never invoked at runtime. This PR removes that dead code (~160 lines) and relaxes pallet_drand::Config to only require CreateBare<Call<Self>> + SigningTypes.

@l0r1s l0r1s added the skip-cargo-audit This PR fails cargo audit but needs to be merged anyway label Mar 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-cargo-audit This PR fails cargo audit but needs to be merged anyway

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants