solidity-examples
solidity-examples copied to clipboard
Add a license?
I'd like to use your heap implementation, as it'd save me the trouble of writing my own. However, without a license file, your code technically is under your copyright. Even if that's the intention, it'd be helpful if there were a license file in this repo to clarify that.
@ryepdx did you ever get an out-of-band answer on the license, or end up writing your own heap implementation? I landed here in the same position as you.
The code is not usable with the current version of Solidity. Modifying it so that it will be usable would probably constitute a big enough change so that it will fall into your own copyright.
Thanks
In case anyone else stumbles here: the best answer in my case, and probably for many other scenarios, is to sort off-chain. Then we only have to spend gas to confirm that the input is sorted on-chain.