Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
Signed-off-by: Norman Meier <[email protected]>
  • Loading branch information
n0izn0iz committed Nov 20, 2024
1 parent e0f96c1 commit 62f4f21
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions gno.land/cmd/gnoland/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import (
"github.com/gnolang/gno/gno.land/pkg/gnoland"
"github.com/gnolang/gno/gno.land/pkg/gnoland/ugnot"
"github.com/gnolang/gno/gno.land/pkg/log"
"github.com/gnolang/gno/gno.land/pkg/stdgenesis"
"github.com/gnolang/gno/gnovm/pkg/gnoenv"
abci "github.com/gnolang/gno/tm2/pkg/bft/abci/types"
"github.com/gnolang/gno/tm2/pkg/bft/config"
Expand Down Expand Up @@ -394,13 +395,11 @@ func generateGenesisFile(genesisFile string, pk crypto.PubKey, c *startCfg) erro
return fmt.Errorf("unable to load genesis balances file %q: %w", c.genesisBalancesFile, err)
}

/*
// Load embedded stdlibs
stdlibsTxs, err := stdgenesis.EmbeddedStdlibsGenesisTxs(genesisDeployAddress, genesisDeployFee)
if err != nil {
return fmt.Errorf("unable to load embedded stdlibs: %w", err)
}
*/
// Load embedded stdlibs
stdlibsTxs, err := stdgenesis.EmbeddedStdlibsGenesisTxs(genesisDeployAddress, genesisDeployFee)
if err != nil {
return fmt.Errorf("unable to load embedded stdlibs: %w", err)
}

// Load examples folder
examplesDir := filepath.Join(c.gnoRootDir, "examples")
Expand All @@ -415,8 +414,7 @@ func generateGenesisFile(genesisFile string, pk crypto.PubKey, c *startCfg) erro
return fmt.Errorf("unable to load genesis txs file: %w", err)
}

genesisTxs = append(pkgsTxs, genesisTxs...)
// genesisTxs = append(stdlibsTxs, append(pkgsTxs, genesisTxs...)...)
genesisTxs = append(stdlibsTxs, append(pkgsTxs, genesisTxs...)...)

// Construct genesis AppState.
gen.AppState = gnoland.GnoGenesisState{
Expand Down

0 comments on commit 62f4f21

Please sign in to comment.