Skip to content
#

linear-types

Here are 22 public repositories matching this topic...

joshuahannan
joshuahannan commented Jul 20, 2020

Issue To Be Solved

We have accurate template transactions in the transactions folder but not all of them are included in the lib/go/templates package.

Suggest A Solution

  • Use the go bindata tool and string replacer to get the template from transactions/ and replace the contract names and addresses with the provided arguments, similar to how it is done with `GenerateCreateCo
joshuahannan
joshuahannan commented Jul 20, 2020

Issue To Be Solved

Every time a contract or transaction is changed and we want to run automated tests, we have to rerun make generate in lib/go/contracts/ and lib/go/templates to ensure that those changes are reflected in the templates we use for the tests in lib/go/test.

Suggest A Solution

  • Fix Makefiles so that a make generate from the root of the repo runs `make genera
MaxMatti
MaxMatti commented Apr 3, 2020

I was using meta17::count_of<TypePack<int>> which returns 0 because the type TypePack<int> is not in the empty typepack.
However I was expecting to get the amount of types present in TypePack<int> which is 1.

Not getting a compiler error led me to believe that this is the correct function for that.
Maybe we should introduce a compiler error for such cases?

Improve this page

Add a description, image, and links to the linear-types topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the linear-types topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.