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.
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
seems to work, but the correct params are
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.