laboratory
laboratory copied to clipboard
txBuilder − Manage Buy Offer − Offer ID should be optional
It's all in the title. Currently the interface forces user to enter an offerId parameter, which doesn't match the network behavior.
Hmm it doesn't say it's optional
on the doc https://www.stellar.org/developers/guides/concepts/list-of-operations.html#manage-buy-offer
We will update it so that if a user didn't specify a value in Offer ID
input, it will be set to 0.
Yes it does... Just look at the JS doc, that's the API you use :
https://stellar.github.io/js-stellar-sdk/Operation.html#.manageBuyOffer
You're right.
We will update so that:
-
offerId
's default value is 0 (this isn't clear on laboratory at the moment) - Add an
optional
attribute
Or I think we didn't include optional
attribute intentionally on laboratory so that the user would have to type in either 0
or their offerID
because it gives a warning at the end if its input value is empty.
Either way, we will clarify it! Thank you!