flow-nft icon indicating copy to clipboard operation
flow-nft copied to clipboard

Make `templates` package use the templates in `transactions`

Open joshuahannan opened this issue 5 years ago • 0 comments

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 GenerateCreateCollectionScript in transaction_templates.go

joshuahannan avatar Jul 20 '20 20:07 joshuahannan