Skip to content

Commit

Permalink
feat: publishing event seting on wallet
Browse files Browse the repository at this point in the history
  • Loading branch information
AhsanRns committed May 16, 2024
1 parent bd8fcd7 commit 96f06f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions wallet/lib/ipc/handler/handlers/create_recipe_handler.dart
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,8 @@ class CreateRecipeHandler implements BaseHandler {
if (shouldShowNFTPreview()) {
final msgObj = pylons.MsgCreateRecipe.create()..mergeFromProto3Json(jsonMap);


if (msgObj.cookbookId.contains('Evently')) {
final events = Events.fromRecipeId(msgObj.cookbookId, msgObj.id);
final events = await Events.fromRecipeId(msgObj.cookbookId, msgObj.id);
if (events != null) {
await navigatorKey.currentState!.pushNamed(Routes.eventView.name, arguments: events);
}
Expand Down
2 changes: 1 addition & 1 deletion wallet/lib/model/event.dart
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class Events extends Equatable {
}

factory Events.fromRecipe(Recipe recipe) {
final Map<String, String> map = _extractAttributeValues(recipe.entries.itemOutputs[0].strings);
final map = _extractAttributeValues(recipe.entries.itemOutputs[0].strings);

return Events(
eventName: map[kEventName]!,
Expand Down

0 comments on commit 96f06f8

Please sign in to comment.