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

View func should be public so it's visible on explorer module view #56

Merged
merged 2 commits into from
Feb 21, 2024
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: 1 addition & 3 deletions move/sh_scripts/dev_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,8 @@ if ! command -v aptos &>/dev/null; then
echo "aptos could not be found"
echo "installing it..."
TARGET=Ubuntu-x86_64
VERSION=2.3.0
VERSION=2.4.0
wget https://github.com/aptos-labs/aptos-core/releases/download/aptos-cli-v$VERSION/aptos-cli-$VERSION-$TARGET.zip
sha=$(shasum -a 256 aptos-cli-$VERSION-$TARGET.zip | awk '{ print $1 }')
[ "$sha" != "d9dc5c6ab3366f25d8547ca939f4a6be659f064c344a81f14631bc435ef6bafe" ] && echo "shasum mismatch" && exit 1
unzip aptos-cli-$VERSION-$TARGET.zip
chmod +x aptos
else
Expand Down
2 changes: 1 addition & 1 deletion move/sources/aptogotchi.move
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ module aptogotchi::main {

// Get reference to Aptogotchi token object (CAN'T modify the reference)
#[view]
fun get_aptogotchi_address(creator_addr: address): (address) {
public fun get_aptogotchi_address(creator_addr: address): (address) {
let collection = string::utf8(APTOGOTCHI_COLLECTION_NAME);
let token_name = to_string(&creator_addr);
let creator_addr = get_app_signer_addr();
Expand Down
Loading