Code: Select all
from beaker import *
from pyteal import *
app = Application('Testing123')
if __name__ == '__main__':
# Build the app and export it
app.build().export('./TestFolder')
# Get the accounts (ensure the localnet is defined correctly)
accounts = localnet.get_accounts()
acc1 = accounts[0]
# Initialize the Algorand client
alogd_client = localnet.get_algod_client()
# Create an application client instance
app_client = client.ApplicationClient(
client=alogd_client,
app=app,
sender=acc1.address,
signer=acc1
)
# Create the application on the blockchain
app_id, address, txid = app_client.create()
# Print the transaction ID of the application creation
print(txid)
Anwendungsfehler: Anwendung konnte nicht geladen werden
Wenn ich jedoch verschiedene APIs verwende, kann ich das tun Sie können problemlos mit dem bereitgestellten Vertrag interagieren. Das Problem tritt nur auf, wenn über den Link auf die Anwendung zugegriffen wird.
Ist jemand auf dieses Problem gestoßen oder weiß jemand, was es verursachen könnte? Jede Hilfe wäre sehr dankbar!