Skip to content

Commit

Permalink
fix build script
Browse files Browse the repository at this point in the history
  • Loading branch information
ramilexe committed Apr 22, 2024
1 parent c68559e commit bff6644
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,4 @@ fi

# Build Subnet EVM, which is run as a subprocess
echo "Building Landslide VM at $BINARY_PATH"
go build -o "$BINARY_PATH" "example/countervm/"*.go
go build -o "$BINARY_PATH" "example/kvstore/"*.go
7 changes: 4 additions & 3 deletions vm/vm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,15 @@ import (

dbm "github.com/cometbft/cometbft-db"
"github.com/cometbft/cometbft/abci/example/kvstore"
vmpb "github.com/consideritdone/landslidevm/proto/vm"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

vmpb "github.com/consideritdone/landslidevm/proto/vm"
)

var (
//go:embed testdata/genesis.json
countervmGenesis []byte
kvstorevmGenesis []byte
)

func newKvApp(t *testing.T, vmdb, appdb dbm.DB) vmpb.VMServer {
Expand All @@ -24,7 +25,7 @@ func newKvApp(t *testing.T, vmdb, appdb dbm.DB) vmpb.VMServer {
require.NotNil(t, vm)
initRes, err := vm.Initialize(context.TODO(), &vmpb.InitializeRequest{
DbServerAddr: "inmemory",
GenesisBytes: countervmGenesis,
GenesisBytes: kvstorevmGenesis,
})
assert.NoError(t, err)
assert.NotNil(t, initRes)
Expand Down

0 comments on commit bff6644

Please sign in to comment.