Skip to content
This repository was archived by the owner on Jan 20, 2021. It is now read-only.
This repository was archived by the owner on Jan 20, 2021. It is now read-only.

Standardise order of arguments for transactions #63

@iherger

Description

@iherger

To prevent usage errors, it would be good to standardise the order of the arguments for transactions.

I suggest to always use the sender address first, e.g.

public deposit(from: Address, amount: BigNumber) {}

In addition, if there are more than 2 (?) other arguments, we should pass an object with the arguments, i.e.

 public requestInvestment(from: Address, args: RequestInvestmentArguments) {}

This may be used / superseded by #61

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions