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

[Faucet] Increase default gas budget #1649

Merged
merged 1 commit into from
Apr 28, 2022
Merged

[Faucet] Increase default gas budget #1649

merged 1 commit into from
Apr 28, 2022

Conversation

lxfind
Copy link
Contributor

@lxfind lxfind commented Apr 28, 2022

A typical publish can cost 10000 gas. 1000 is likely not enough to do anything meaningful.
Let me know if this is too big.

@lxfind lxfind requested review from bmwill and 666lcz April 28, 2022 15:42
@@ -27,7 +27,7 @@ pub struct SimpleFaucet {
active_address: SuiAddress,
}

const DEFAULT_GAS_BUDGET: u64 = 1000;
const DEFAULT_GAS_BUDGET: u64 = 50000;
Copy link
Contributor

Choose a reason for hiding this comment

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

This is for paying the transfer operations instead of sending to users. The latter is defined here and configurable in the deployment script. You can change this line to 10000 and it will take effect after the next deployment(let me know if you want a deployment asap)

Copy link
Contributor

@666lcz 666lcz left a comment

Choose a reason for hiding this comment

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

This

@lxfind lxfind force-pushed the increase-default-gas branch from 4ef167a to 0df0549 Compare April 28, 2022 15:55
@lxfind lxfind merged commit bb8da0a into main Apr 28, 2022
@lxfind lxfind deleted the increase-default-gas branch April 28, 2022 16:58
longbowlu pushed a commit that referenced this pull request May 12, 2022
punwai pushed a commit that referenced this pull request Jul 27, 2022
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