Skip to content

Commit

Permalink
- Fix duplicate download for some contract
Browse files Browse the repository at this point in the history
- Remove unused import from Python generator
  • Loading branch information
ixje committed Sep 2, 2022
1 parent feda36c commit 049ba01
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion generators/python.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ const pythonSrcTmpl = `
{{- end}}) -> {{if .ReturnType }}{{ .ReturnType }}: {{ else }} None: {{ end }}
pass
{{- end -}}
from boa3.builtin.interop.contract import call_contract
from boa3.builtin.type import UInt160, UInt256, ECPoint
from boa3.builtin import contract
from typing import cast, Any
Expand Down
3 changes: 3 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,13 +182,16 @@ func handleCliRun(cCtx *cli.Context) error {
generateSuccess = true
}
}
break
}
}
if sdkOnly && *c.ContractGenerateSdk {
err := fetchManifestAndGenerateSDK(&c, host)
if err != nil {
log.Fatal(err)
}
generateSuccess = true
break
}
}

Expand Down

0 comments on commit 049ba01

Please sign in to comment.