Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ECO-430] Iindicate which form of address to use in sdk example #449

Merged
merged 2 commits into from
Aug 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions doc/doc-site/docs/off-chain/rust-sdk.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ It's time to deploy our own Econia Faucet to the local chain:
git clone https://github.com/econia-labs/econia.git # only if necessary
cd ./econia/src/move/faucet
aptos init --profile econia_faucet_deploy # enter "local" for the chain
export FAUCET_ADDR=<ACCOUNT-FROM-ABOVE>
export FAUCET_ADDR=<ACCOUNT-FROM-ABOVE> # make sure to put 0x at the start
# deploy the faucet (all one command)
aptos move publish \
--named-addresses econia_faucet=$FAUCET_ADDR \
Expand All @@ -56,7 +56,7 @@ You also need to deploy Econia:
```bash
cd ./econia/src/move/econia
aptos init --profile econia_exchange_deploy # enter "local" for the chain
export ECONIA_ADDR=<ACCOUNT-FROM-ABOVE>
export ECONIA_ADDR=<ACCOUNT-FROM-ABOVE> # make sure to put 0x at the start
# deploy the exchange (all one command)
aptos move publish \
--override-size-check \
Expand Down
26 changes: 13 additions & 13 deletions src/rust/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions src/rust/sdk/example/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ aptos move publish \

# run the script
cargo run -- $APTOS_NODE_URL $APTOS_FAUCET_URL $ECONIA_ADDR $FAUCET_ADDR

# note that when passing addresses to the executable, they must be of the form 0x1234...
alnoki marked this conversation as resolved.
Show resolved Hide resolved
*/

#[derive(Parser, Debug)]
Expand All @@ -71,10 +73,10 @@ pub struct Args {
/// The URL of the faucet
pub faucet_url: String,

/// The address of the Econia contract
/// The address of the Econia contract (e.g. 0x1234...)
pub econia_address: String,

/// The address of the Aptos faucet
/// The address of the Aptos faucet (e.g. 0x1234...)
pub faucet_address: String,
}

Expand Down
Loading