Skip to content

Commit

Permalink
[AVAX] Post Merge fixes for Cortina 19 (v0.12.11-rc.2)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kleonikos Kyriakis committed Mar 28, 2024
1 parent e430f89 commit d0d08c8
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion accounts/abi/bind/bind_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2182,7 +2182,7 @@ func golangBindings(t *testing.T, overload bool) {
if out, err := replacer.CombinedOutput(); err != nil {
t.Fatalf("failed to replace binding test dependency to current source tree: %v\n%s", err, out)
}
replacer = exec.Command(gocmd, "mod", "edit", "-x", "-require", "github.com/ava-labs/avalanchego@v0.0.0", "-replace", "github.com/ava-labs/avalanchego=github.com/chain4travel/caminogo@v1.1.18-rc0") // Repo root
replacer = exec.Command(gocmd, "mod", "edit", "-x", "-require", "github.com/ava-labs/avalanchego@v0.0.0", "-replace", "github.com/ava-labs/avalanchego=github.com/chain4travel/caminogo@v1.1.19-rc0") // Repo root
replacer.Dir = pkg
if out, err := replacer.CombinedOutput(); err != nil {
t.Fatalf("failed to replace binding test dependency to current source tree: %v\n%s", err, out)
Expand Down
4 changes: 2 additions & 2 deletions plugin/evm/camino_vm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ func DisabledTestSunrisePhase0OrphanBlock(t *testing.T) {
}

// Manually created Eth Block with a manually created header
emptyEthBlk := types.NewBlock(
emptyEthBlk := types.NewBlockWithExtData(
&types.Header{
Coinbase: common.Address{1},
ParentHash: blkAEthBlock.Hash(),
Expand Down Expand Up @@ -235,7 +235,7 @@ func DisabledTestSunrisePhase0OrphanBlock(t *testing.T) {
assert.ErrorIs(t, emptyBlock.Verify(context.TODO()), errEmptyBlock)

// Manually created Eth Block with a manually created header
orphanEthBlock := types.NewBlock(
orphanEthBlock := types.NewBlockWithExtData(
&types.Header{
ParentHash: common.Hash{},
Difficulty: math.BigPow(11, 11),
Expand Down
2 changes: 1 addition & 1 deletion scripts/build_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ CAMINOETHVM_PATH=$( cd "$( dirname "${BASH_SOURCE[0]}" )"; cd .. && pwd )
# Load the constants
source "$CAMINOETHVM_PATH"/scripts/constants.sh

go test "$@" -timeout="30m" -coverprofile="coverage.out" -covermode="atomic" $(go list ./... | grep -v /mocks | grep -v proto | grep -v tests)
go test "$@" -timeout="30m" -coverprofile="coverage.out" -covermode="atomic" "$(go list ./... | grep -v /mocks | grep -v proto | grep -v tests)"
4 changes: 2 additions & 2 deletions scripts/constants.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ caminoethvm_tag=${CAMINOETHVM_TAG:-$( git describe --tags )}
echo "Using tag: ${caminoethvm_tag}"

# caminogo version
module=$(grep caminogo $CAMINOETHVM_PATH/go.mod)
module=$(grep caminogo "$CAMINOETHVM_PATH"/go.mod)
# trim leading
module="${module#"${module%%[![:space:]]*}"}"
t=(${module//\ / })
t=("${module//\ / }")
caminogo_tag=${t[1]}

build_image_id=${BUILD_IMAGE_ID:-"$caminogo_tag-$caminoethvm_short_commit"}
Expand Down

0 comments on commit d0d08c8

Please sign in to comment.