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

Continue Improving Event Flows #399

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Conversation

tbraun96
Copy link
Collaborator

No description provided.

impl ValueIntoFieldType for String {
fn into_field_type(self) -> Field<AccountId32> {
Field::String(BoundedString(BoundedVec(
self.into_bytes().into_iter().collect(),
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
self.into_bytes().into_iter().collect(),
self.into_bytes(),

This should be enough, right?


if let ResultsKind::Types(ref r) = result {
if r.is_empty() {
return Err(input.error("Expected at least one parameter for the `result` attribute, or `_` to infer the type"));
return Err(input.error("Expected at least one parameter for the `result` attribute, or `_` to infer the type, or nothing to infer the type from the function return type"));
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
return Err(input.error("Expected at least one parameter for the `result` attribute, or `_` to infer the type, or nothing to infer the type from the function return type"));
return Err(input.error("`result` attribute empty, expected at least one parameter, or `_` to infer the type"));

The error is getting long, once #381 is being worked on we can use a diagnostic crate and provide that as a hint.

@@ -51,6 +53,7 @@ gadget-sdk = { path = "./sdk", default-features = false, version = "0.2.2" }
incredible-squaring-blueprint-eigenlayer = { path = "./blueprints/incredible-squaring-eigenlayer", default-features = false, version = "0.1.1" }
incredible-squaring-aggregator = { path = "./blueprints/incredible-squaring-eigenlayer/aggregator", default-features = false, version = "0.1.1" }
periodic-web-poller-blueprint = { path = "./blueprints/periodic-web-poller", default-features = false, version = "0.1.1" }
tangle-raw-blueprint = { path = "./blueprints/tangle-raw", default-features = false, version = "0.1.1" }
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
tangle-raw-blueprint = { path = "./blueprints/tangle-raw", default-features = false, version = "0.1.1" }
tangle-raw-event-listener-blueprint = { path = "./blueprints/tangle-raw-event-listener", default-features = false, version = "0.1.1" }

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.

2 participants