Skip to content

Commit

Permalink
update to devnet urls for tutorials and sample
Browse files Browse the repository at this point in the history
  • Loading branch information
davidiw authored and aptos-bot committed Mar 12, 2022
1 parent a6ad969 commit 5bf7b0b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion developer-docs-site/docs/tutorials/first-move-module.md
Original file line number Diff line number Diff line change
Expand Up @@ -257,5 +257,5 @@ The data can be verified by visiting either a REST interface or the explorer:

[account_basics]: /basics/basics-accounts
[alice_account_rest]: https://dev.fullnode.aptoslabs.com/accounts/a52671f10dc3479b09d0a11ce47694c0/
[bob_account_explorer]: https://aptos-explorer.netlify.app/account/ec6ec14e4abe10aaa6ad53b0b63a1806/
[bob_account_explorer]: https://explorer.devnet.aptos.dev/account/ec6ec14e4abe10aaa6ad53b0b63a1806
[rest_spec]: https://dev.fullnode.aptoslabs.com/spec.html
2 changes: 1 addition & 1 deletion developer-docs-site/docs/tutorials/first-transaction.md
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,6 @@ The data can be verified by visiting either a REST interface or the explorer:

[account_basics]: /basics/basics-accounts
[alice_account_rest]: https://dev.fullnode.aptoslabs.com/accounts/e26d69b8d3ff12874358da6a4082a2ac/resources
[bob_account_explorer]: https://aptos-explorer.netlify.app/account/c8585f009c8a90f22c6b603f28b9ed8c
[bob_account_explorer]: https://explorer.devnet.aptos.dev/account/c8585f009c8a90f22c6b603f28b9ed8c
[rest_spec]: https://dev.fullnode.aptoslabs.com/spec.html
[python_download]: /examples/first_transaction.py
2 changes: 1 addition & 1 deletion developer-docs-site/static/examples/first_transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from typing import Any, Dict, Optional, Sequence

TESTNET_URL = "https://dev.fullnode.aptoslabs.com"
FAUCET_URL = "https://faucet.fullnode.aptoslabs.com"
FAUCET_URL = "https://faucet.dev.aptoslabs.com"


"""
Expand Down
8 changes: 6 additions & 2 deletions developer-docs-site/static/examples/hello_blockchain.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,14 @@

from first_transaction import Account, FaucetClient, RestClient

TESTNET_URL = "http://127.0.0.1:8080"
FAUCET_URL = "http://127.0.0.1:8081"
TESTNET_URL = "https://dev.fullnode.aptoslabs.com"
FAUCET_URL = "https://faucet.dev.aptoslabs.com"


class HelloBlockchainClient(RestClient):
def get_message(self, contract_address, account_address) -> str:
""" Retrieve the resource Message::MessageHolder::message """

resources = self.account_resources(account_address)
for resource in resources:
if resource["type"] == f"0x{contract_address}::Message::MessageHolder":
Expand All @@ -35,6 +37,8 @@ def publish_module(self, account_from: Account, module: str) -> str:
return str(res["hash"])

def set_message(self, contract_address: str, account_from: Account, message: str) -> str:
""" Potentially initialize and set the resource Message::MessageHolder::message """

payload = {
"type": "script_function_payload",
"function": f"0x{contract_address}::Message::set_message",
Expand Down

0 comments on commit 5bf7b0b

Please sign in to comment.