confusing error message for per-asset permission

+2 votes
I was preparing my second (and final) class for blockchain using Multichain. I was thinking about including Alpha 2 (great work so far!), but I encountered a slightly confusing error message.

I wanted to try out the per-asset restrictions because one of the attendees specifically asked about those.
address1 created asset1, open = true, qty = 100, restrictions = "send"
address1 sends 10 of asset1 to address2
address1 grants global send,receive permissions to address2
address2 tries to send 5 back to address1:
"Insufficient funds, but there are coins belonging to addresses without send or receive permission.

hmm...., a bit of a weird error message in my opinion. first off I'm creating assets which don't necessarily are "coins" (at least from my point of view when I create an asset called bananas I'm talking about bananas in kilos or amount). Second, when listaddressbalances is run on address2:
 multichain-cli alphaTest getaddressbalances 1rAkKP3jQmEaiMrVJ2wPG4fEwsGy2ZuMzgWaY
        "name" : "asset1",
        "assetref" : "108-266-64404",
        "qty" : 10

So there is a sufficient amount

I granted address2 asset1.send
after that I was able to send from address2 to address1.

please correct me if I'm interpreting this error message wrong
asked Apr 8, 2018 by Rachelle

2 Answers

+1 vote
Best answer
Yes, you interpreted this error message correctly. The problem was that address2 had some units of the asset but it did not have send permissions for that asset, and the asset was send-restricted.

The confusion is caused by the fact that "coins" is a technical term used to mean "unspent transaction output", but we'll look into improving this error message in future.
answered Apr 9, 2018 by MultiChain
selected Apr 9, 2018 by Rachelle
0 votes
Version 1.0.5 of MultiChain has just been released, with an improved version of this error message.
answered Jun 7, 2018 by MultiChain