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