Skip to content

Commit

Permalink
stellar#41: fixed cli test to use --source=identity, updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
sreuland committed Mar 23, 2023
1 parent d680fad commit 6b19f82
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
16 changes: 12 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,21 @@ To run tests, requires two steps:
GO_GIT_REF=? \
RUST_TOOLCHAIN_VERSION=? \
SOROBAN_CLI_CRATE_VERSION=? \
JS_SOROBAN_CLIENT_NPM_VERSION=? \
NODE_VERSION=? \
build
```

example of build using specific git branches, latest in this case, or use tag names for releases:
```
$ make CORE_GIT_REF=https://github.com/stellar/stellar-core#f1dc39f0f146815e5e3a94ed162e2f0639cb433f \
$ make CORE_GIT_REF=https://github.com/stellar/stellar-core.git#f1dc39f0f146815e5e3a94ed162e2f0639cb433f \
CORE_COMPILE_CONFIGURE_FLAGS="--disable-tests --enable-next-protocol-version-unsafe-for-production" \
SOROBAN_RPC_GIT_REF=https://github.com/stellar/soroban-tools#main \
SOROBAN_RPC_GIT_REF=https://github.com/stellar/soroban-tools.git#main \
RUST_TOOLCHAIN_VERSION=stable \
SOROBAN_CLI_GIT_REF=https://github.com/stellar/soroban-tools#main \
QUICKSTART_GIT_REF=https://github.com/stellar/quickstart#master build
SOROBAN_CLI_GIT_REF=https://github.com/stellar/soroban-tools.git#main \
QUICKSTART_GIT_REF=https://github.com/stellar/quickstart.git#master \
JS_SOROBAN_CLIENT_NPM_VERSION=https://github.com/stellar/js-soroban-client.git\#main \
build
```

example of build using the existing quickstart:soroban-dev image which has latest released soroban server versions and builds soroban cli from local directory of checked out soroban-tools repo:
Expand All @@ -45,13 +49,17 @@ To run tests, requires two steps:
GO_GIT_REF=https://github.com/stellar/go.git#soroban-xdr-next
CORE_COMPILE_CONFIGURE_FLAGS="--disable-tests --enable-next-protocol-version-unsafe-for-production"
CORE_GIT_REF=https://github.com/stellar/stellar-core.git#master
JS_SOROBAN_CLIENT_NPM_VERSION=https://github.com/stellar/js-soroban-client.git\#main
```

optional to set:
```
# this will override SOROBAN_CLI_GIT_REF, and install soroban cli from crates repo instead
SOROBAN_CLI_CRATE_VERSION=0.4.0
# this will override the default Node JS vm version used for running the JS code:
NODE_VERSION=14.20.0
# Image overrides.
# If using these, the image ref should provide a manifiest version for same
# platform arch as the build host is running on, i.e. linux/amd64 or linux/arm64.
Expand Down
2 changes: 1 addition & 1 deletion features/dapp_develop/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func deployContractUsingConfigParams(compiledContractFileName string, contractWo
"deploy",
"--wasm", fmt.Sprintf("./%s/target/wasm32-unknown-unknown/release/%s", contractWorkingDirectory, compiledContractFileName),
"--network", networkConfigName,
"--identity", identityName)
"--source", identityName)

status, stdOut, err := e2e.RunCommand(envCmd, e2eConfig)

Expand Down

0 comments on commit 6b19f82

Please sign in to comment.