-
Notifications
You must be signed in to change notification settings - Fork 4
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
base: main
Are you sure you want to change the base?
Conversation
impl ValueIntoFieldType for String { | ||
fn into_field_type(self) -> Field<AccountId32> { | ||
Field::String(BoundedString(BoundedVec( | ||
self.into_bytes().into_iter().collect(), |
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.
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")); |
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.
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" } |
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.
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" } |
No description provided.