-
Notifications
You must be signed in to change notification settings - Fork 40
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
Conversation
bin/faucet/src/client.rs
Outdated
@@ -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()) |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
There was a problem hiding this 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
There was a problem hiding this 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?
With the recent change in
miden-base
the faucet stopped working. This PR fixes the note script the faucet uses to send assets.