sdk-go icon indicating copy to clipboard operation
sdk-go copied to clipboard

refactor: replace interface{} with any for clarity and modernization

Open weifangc opened this issue 2 weeks ago • 1 comments

This change replaces occurrences of interface{} with the predeclared identifier any, introduced in Go 1.18 as an alias for interface{}.

As noted in the Go 1.18 Release Notes: This improves readability and aligns the codebase with modern Go conventions.

Summary by CodeRabbit

  • Refactor

    • Updated type system across multiple modules for Go 1.18+ compatibility with no functional impact.
  • Bug Fixes

    • Enhanced parameter validations in blockchain modules to enforce stricter minimum value requirements and address validation constraints.

✏️ Tip: You can customize this high-level summary in your review settings.

weifangc avatar Nov 24 '25 11:11 weifangc