Skip to content

Commit 107f6a3

Browse files
docs(vm): specify relatex typecheck mode is used for msg run (#4900)
fix #4783 the issue recommendation is not viable since msg run would need to pass a gnomod file then. i just added to the comment that this tcmode is use for handling msg run tx too.
1 parent 53a472f commit 107f6a3

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

gno.land/pkg/gnoland/genesis.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ func LoadPackagesFromDir(dir string, creator bft.Address, fee std.Fee) ([]TxWith
189189
txs := make([]TxWithMetadata, 0, len(nonIgnoredPkgs))
190190

191191
for _, pkg := range nonIgnoredPkgs {
192-
// XXX: as addpkg require gno.mod, we should probably check this here
192+
// XXX: as addpkg require gnomod.toml, we should probably check this here
193193
mpkg, err := gno.ReadMemPackage(pkg.Dir, pkg.Name, gno.MPUserAll)
194194
if err != nil {
195195
return nil, fmt.Errorf("unable to load package %q: %w", pkg.Dir, err)

gno.land/pkg/integration/doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
// - Must be run before `gnoland start`.
3535
// - Loads a specific package from the 'examples' directory or from the working ($WORK) directory.
3636
// - Can be used to load a single package or all packages within a directory.
37-
// - If the target package has a `gno.mod`, all its dependencies (and their respective
37+
// - If the target package has a `gnomod.toml`, all its dependencies (and their respective
3838
// dependencies) will also be loaded.
3939
// - The command takes either one or two arguments. The first argument is the name of the package(s),
4040
// and the second (optional) argument is the path to the package(s).

gnovm/pkg/gnolang/gotypecheck.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,9 @@ func (gw gimpGetterWrapper) GetMemPackage(pkgPath string) *std.MemPackage {
132132
type TypeCheckMode int
133133

134134
const (
135-
TCLatestStrict TypeCheckMode = iota // require latest gnomod gno version, forbid drafts
136-
TCGenesisStrict // require latest gnomod gno version, allow drafts
137-
TCLatestRelaxed // generate latest gno.mod if missing; for testing
135+
TCLatestStrict TypeCheckMode = iota // require latest gnomod.toml gno version, forbid drafts
136+
TCGenesisStrict // require latest gnomod.toml gno version, allow drafts
137+
TCLatestRelaxed // generate latest gnomod.toml if missing
138138
TCGno0p0 // when gno fix'ing from gno 0.0.
139139
)
140140

0 commit comments

Comments
 (0)