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

feat: add sender to instructions #4234

Merged
merged 2 commits into from
Jun 28, 2022

Conversation

stringhandler
Copy link
Collaborator

@stringhandler stringhandler commented Jun 27, 2022

Adds sender to DAN instructions

NOTE: I also created new schema.rs and config file for generating the global db with diesel. See dan_layer/storage_sqlite/README.md

Copy link
Member

@sdbondi sdbondi left a comment

Choose a reason for hiding this comment

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

LGTM (utAck)

@@ -78,6 +81,10 @@ impl Instruction {
&self.args
}

pub fn sender(&self) -> PublicKey {
Copy link
Member

Choose a reason for hiding this comment

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

nit: this naming convention usually means a reference to the item is returned.
Suggest either to_sender_public_key or return a reference.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ah yeah, I thought it was Copy for some reason....

Copy link
Contributor

@brianp brianp left a comment

Choose a reason for hiding this comment

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

Reviewed and looks fine. I tried running the migration changes but diesel_cli is refusing to compile so going with ut for now.

Just had to say it wouldn't work and then it worked. 👌🏻

@aviator-app aviator-app bot merged commit 6c116ac into tari-project:development Jun 28, 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.

4 participants