lightningrodlabs / rea-playspace

Holochain app to play with REA accounting
31 stars 7 forks source link

Bug: My transferCustody has reticulating splines #182

Closed fosterlynn closed 1 year ago

fosterlynn commented 1 year ago

Not able to create an event that seems like it should be OK.

The context(and the resource list does show 30 lb in that resource owned by Bob's Bakery): Screenshot from 2022-10-30 09-36-42

The attempted event: Screenshot from 2022-10-30 08-21-39

The result (also tried with a resource created for Bob):

Screenshot from 2022-10-30 08-21-31

adaburrows commented 1 year ago

That's a bug in the label generation code. It's expecting something that isn't there. Should be simple to fix. Also, "Reticualting" is misspelled...

fosterlynn commented 1 year ago

Here's another occurrence, different action: Screenshot from 2022-10-30 11-05-28

adaburrows commented 1 year ago

Ah, ok. I must have assumed both EconomicResources would be present in the label generating code.

adaburrows commented 1 year ago

Oh, this turned out to be really dumb. I forgot to update the keys the isTransfer function checked for when we made the change from hyphenated to unhyphenated keys.