Skip to content

JSDoc examples show wrong field names (supplier/borrower instead of sender) #149

@mrcattington

Description

@mrcattington

The JSDoc examples for supply(), withdraw(), borrow(), and repay() show using supplier or borrower fields, but the actual TypeScript types require sender. Took me a bit to figure out why my code wasn't working.

Example from JSDoc:
supply({ supplier: evmAddress('0x...'), ... })

What actually works:
supply({ sender: evmAddress('0x...'), ... })

Using @aave/client 0.9.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions