Skip to content

Remove constructScheduleProtobuf from TransactionInterface (stale TODOs) #1802

Description

@ddeskov-limechain

Two stale TODOs point at the same cleanup — constructScheduleProtobuf looks removable:

  • sdk/transaction.go:34 — the method is declared on TransactionInterface with // TODO remove this method if possible
  • sdk/file_append_transaction.go:285// TODO can be removed at some point on the FileAppendTransaction implementation, which is a one-line wrapper around buildScheduled()

Because it sits on TransactionInterface, every transaction type carries an implementation; the FileAppend one just delegates to buildScheduled(), and the rest look like the same boilerplate.

Scope: check whether the schedule-create path can call buildScheduled() directly (or whether any implementation does more than delegate). If nothing blocks it, drop the method from the interface and delete the per-transaction implementations. If it turns out to be load-bearing, replace both TODOs with a comment explaining why it stays.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions