You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
New scaffolded blockchains have an inconsistency, the type/genesis.go template used to have (v0.14.0):
// this line is used by starport scaffolding # genesis/types/import
And it has been changed to:
import (
// this line is used by starport scaffolding # genesis/types/import
)
Scaffolding type replace it with "fmt", the package needed and if the the first template is used then the code is:
"fmt"
which trigger an error. It can be easily fixed by adding:
import "fmt"
Though, this is annoying for the user.
A fix could be, when scaffolding a type, to verify if:
import (
// this line is used by starport scaffolding # genesis/types/import
exists in the file.
If not we replace:
// this line is used by starport scaffolding # genesis/types/import
With
import (
// this line is used by starport scaffolding # genesis/types/import
)
The text was updated successfully, but these errors were encountered:
lumtis
changed the title
Error when Scaffolding types on old scaffolded blockcahins
Error when Scaffolding types on old scaffolded blockchains
Apr 14, 2021
New scaffolded blockchains have an inconsistency, the
type/genesis.go
template used to have (v0.14.0):And it has been changed to:
Scaffolding type replace it with
"fmt"
, the package needed and if the the first template is used then the code is:which trigger an error. It can be easily fixed by adding:
Though, this is annoying for the user.
A fix could be, when scaffolding a type, to verify if:
exists in the file.
If not we replace:
With
The text was updated successfully, but these errors were encountered: