Skip to content

Replace unsafe error handling with proper error propagation #137

@kwsantiago

Description

@kwsantiago

Description

  • Found 1000+ instances of .expect() and .unwrap() that can crash the application
  • These should use ? operator or proper error handling

Locations

  • ddk-node/src/lib.rs:147 - Contract input deserialization
  • ddk-node/src/command.rs:64,92,123,136 - JSON parsing
  • Multiple other locations throughout codebase

Fix

  • Replace with ? operator
  • Add proper error context
  • Return appropriate error types

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions