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

Create tool that returns a contract for block producer with hardcoded public key inside #1409

Closed
xgreenx opened this issue Oct 9, 2023 · 2 comments · Fixed by #1501
Closed
Assignees

Comments

@xgreenx
Copy link
Collaborator

xgreenx commented Oct 9, 2023

Related #1269

@MitchTurner
Copy link
Member

MitchTurner commented Nov 21, 2023

Create tool that returns a contract for block producer with hardcoded public key inside

A tool where? Is this returning the code for a contract or somehow generating it on chain. Why do we want this?

@xgreenx
Copy link
Collaborator Author

xgreenx commented Nov 21, 2023

A tool where?

As part of the fuel-core binary.

Is this returning the code for a contract or somehow generating it on chain

The tool should return the bytecode of the contract.

Why do we want this?

We want to put the bytecode of the generated contract in the chain config. The block producer will use this contract to accumulate and withdraw fees from blocks.

xgreenx added a commit that referenced this issue Nov 22, 2023
Closes #1409 

Handing off to @Dentosal 

The tests contain example of how to withdraw tokens.

---------

Co-authored-by: Hannes Karppila <[email protected]>
Co-authored-by: xgreenx <[email protected]>
@xgreenx xgreenx removed their assignment Nov 27, 2023
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 a pull request may close this issue.

3 participants