solidity-examples icon indicating copy to clipboard operation
solidity-examples copied to clipboard

Add a license?

Open ghost opened this issue 9 years ago • 3 comments

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.

ghost avatar Feb 21 '16 15:02 ghost

@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.

carver avatar Jun 10 '17 01:06 carver

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.

chriseth avatar Aug 21 '17 10:08 chriseth

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.

carver avatar Aug 21 '17 17:08 carver