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

Minor Updates #403

Merged
merged 3 commits into from
Jul 29, 2024
Merged

Minor Updates #403

merged 3 commits into from
Jul 29, 2024

Conversation

polarker
Copy link
Member

No description provided.

@polarker polarker requested review from h0ngcha0 and Lbqds July 29, 2024 13:08
Copy link
Member

@Lbqds Lbqds left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, only one question.

@@ -1725,14 +1725,15 @@ function getBytecodeTemplate(
// For the default TxScript main function
const numberOfMethods = '01'
const isPublic = '01'
const modifier = usePreapprovedAssets ? '03' : '00'
const scriptUseApprovedAssets = attoAlphAmount !== undefined || tokens !== undefined
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Question: In what situations does a contract method use preapproved assets, but the script does not use preapproved assets?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's impossible, but it's possible that the method does not use preapproved assets, but the script use preapproved assets. E.g. the withdraw function of token faucet.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it, thanks for the explanation

@polarker polarker merged commit 2c0ef21 into master Jul 29, 2024
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants