Skip to content
  • Luke Champine's avatar
    fix download bug (#1361) · c8525584
    Luke Champine authored and David Vorick's avatar David Vorick committed
    * collect download contracts properly
    
    Using a reference in the for loop caused the map to wind up with
    only 1 entry, since the same pointer is used for each iteration.
    To fix this, the map variable was abandoned in favor of a custom
    slice. Although more unwieldy, there is less chance of misuse.
    
    * sort contracts by value
    
    * add TestSortByValue
    
    * add regression test
    c8525584