Skip to content

Throw errors on unknown Operation parameters #272

Description

@msfeldstein

Describe the bug
Currently when you're creating operations for a transaction, you can pass incorrect parameters and the sdk quietly lets you. For example

StellarSdk.Operation.changeTrust({
    amount: "0"
  })

seems to work, but the correct params are

StellarSdk.Operation.changeTrust({
    limit: "0"
  })

We should throw an error when you try to pass amount since that's clearly something wrong. It will save developers a lot of frustration to find out early that something is wrong than to have to figure out why the operation didn't do what they expected.

Metadata

Metadata

Assignees

No one assigned

    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