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

fix: Add aux input to faucet #387

Merged
merged 5 commits into from
Jun 14, 2024
Merged

fix: Add aux input to faucet #387

merged 5 commits into from
Jun 14, 2024

Conversation

tomyrd
Copy link
Collaborator

@tomyrd tomyrd commented Jun 14, 2024

With the recent change in miden-base the faucet stopped working. This PR fixes the note script the faucet uses to send assets.

@tomyrd tomyrd marked this pull request as ready for review June 14, 2024 16:09
@@ -316,6 +317,7 @@ fn build_transaction_arguments(
&DISTRIBUTE_FUNGIBLE_ASSET_SCRIPT
.replace("{recipient}", &recipient)
.replace("{note_type}", &Felt::new(note_type as u64).to_string())
.replace("{aux}", &Felt::default().to_string())
Copy link
Collaborator

Choose a reason for hiding this comment

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

Might be best to do note.metadata().aux().to_string() here so that it comes from the created note, even if it's hardcoded there as well.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done!

Copy link
Collaborator

@igamigo igamigo left a comment

Choose a reason for hiding this comment

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

LGTM! Left a small comment

Copy link
Contributor

@bobbinth bobbinth left a comment

Choose a reason for hiding this comment

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

Looks good! Thank you! But the tests seem to be failing?

@igamigo igamigo merged commit a00550d into next Jun 14, 2024
6 checks passed
@igamigo igamigo deleted the tomyrd-add-aux-to-faucet branch June 14, 2024 20:03
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.

3 participants