compiler: make DebugInfo.convertToManifest public

Allow to generate manifest when using compiler as a library.
This commit is contained in:
Evgenii Stratonikov 2020-07-23 17:01:51 +03:00
parent 7d8fead1fd
commit 04bf357fa5
3 changed files with 4 additions and 4 deletions

View file

@ -338,9 +338,9 @@ func parsePairJSON(data []byte, sep string) (string, string, error) {
return ss[0], ss[1], nil
}
// convertToManifest converts contract to the manifest.Manifest struct for debugger.
// ConvertToManifest converts contract to the manifest.Manifest struct for debugger.
// Note: manifest is taken from the external source, however it can be generated ad-hoc. See #1038.
func (di *DebugInfo) convertToManifest(fs smartcontract.PropertyState) (*manifest.Manifest, error) {
func (di *DebugInfo) ConvertToManifest(fs smartcontract.PropertyState) (*manifest.Manifest, error) {
var (
mainNamespace string
err error