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

Let new added contract be accessable in the same transaction after adding #3356

Open
btspoony opened this issue May 17, 2024 · 0 comments
Open

Comments

@btspoony
Copy link

Issue to be solved

log("Deploying the contract to the account: ".concat(childAddr.toString()))

// add the contract
childAcctRef.contracts.add(name: contractName, code: ftContract.code)

// check if the contract is deployed
let names = childAcctRef.contracts.names
if names.length > 0 {
    log("The contracts in the account: ".concat(StringUtils.join(names, ",")))
} else {
    log("No contract is deployed in the account")
}

Log result is No contract is deployed in the account

Disord conversation: https://discord.com/channels/613813861610684416/1240681815698702416

Suggested Solution

Improve the behaviour

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant