Skip to content

Commit 4cb4881

Browse files
updated the plugin dir, to match the subnet-evm path (#95)
Co-authored-by: Jonathan Oppenheimer <jonathan.oppenheimer@avalabs.org>
1 parent f8c41fa commit 4cb4881

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

scripts/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ source "$ROOT_DIR_PATH"/scripts/constants.sh
1919
if [[ $# -eq 1 ]]; then
2020
BINARY_PATH=$1
2121
elif [[ $# -eq 0 ]]; then
22-
BINARY_PATH="$GOPATH/src/github.com/ava-labs/avalanchego/build/plugins/srEXiWaHuhNyGwPUi444Tu47ZEDwxTWrbQiuD7FmgSAQ6X7Dy"
22+
BINARY_PATH="$DEFAULT_PLUGIN_DIR/$DEFAULT_VM_ID"
2323
else
2424
echo "Invalid arguments to build precompile-evm. Requires zero (default location) or one argument to specify binary location."
2525
exit 1

scripts/constants.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
# Set the PATHS
44
GOPATH="$(go env GOPATH)"
5+
DEFAULT_PLUGIN_DIR="${HOME}/.avalanchego/plugins"
6+
DEFAULT_VM_ID="srEXiWaHuhNyGwPUi444Tu47ZEDwxTWrbQiuD7FmgSAQ6X7Dy"
57

68
# Static compilation
79
STATIC_LD_FLAGS=''

0 commit comments

Comments
 (0)