simpleledger/slpjs

Token change issue

Closed this issue · 1 comments

static async sendToken(tokenId, sendAmount, fundingAddress, fundingWif, tokenReceiverAddress, bchChangeReceiverAddress){

There are two issues with the bitboxnetwork.sendToken() method.

  1. When token change is 0 there is a dust output still created to receive 0 tokens.
  2. Address for receiving the token change should be the same as the bchChangeAddress parameter
  3. Rename the bchChangeAddress parameter so that it is clear that both token change and bch change are going back to this address.

Also, if this isn't provided where does the change go? The funding address?

This is resolved.