Skip to content

Conversation

@melotik
Copy link
Contributor

@melotik melotik commented Dec 10, 2022

#111

Get the SOL balance changes on each transaction!

Issues:

@melotik
Copy link
Contributor Author

melotik commented Dec 10, 2022

@this-username-is-taken
Copy link
Contributor

I believe I was able to workaround it by downgrading the version of the substreams package. See https://discord.com/channels/666749063386890256/982135810742697984/1038223878763335792

@melotik melotik requested a review from robinbernon December 15, 2022 01:34
@melotik
Copy link
Contributor Author

melotik commented Dec 15, 2022

@robinbernon would you mind taking a look at the last TODO comment? I am wondering if there is something wrong with my setup that it wants that Vec type

@robinbernon
Copy link
Contributor

@robinbernon would you mind taking a look at the last TODO comment? I am wondering if there is something wrong with my setup that it wants that Vec type

No you are expected to be inputing a Vec type here. Vec is a generic placeholder for a list of bytes. You need to encode the struct to bytes in order to input it here. Try using the encode_to_vec() method to do this. (encode_to_vec() is a fn from the prost::Message trait which these structs all have derived already so you should just be able to call it directly without having to do any extra work here)

@robinbernon
Copy link
Contributor

Also, add this project to the makefile cmds in the root of the folder. It should be added to the build-all and run-all cmds.

@robinbernon
Copy link
Contributor

Add also add it to the shared workspace in the root Cargo.toml file

@melotik
Copy link
Contributor Author

melotik commented Dec 15, 2022

thanks @robinbernon

@@ -0,0 +1,4 @@
[toolchain]
Copy link
Contributor

Choose a reason for hiding this comment

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

Same comments on this sorta stuff as with the other PRs :)

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