Skip to content

Remove data wrapper from exported voluntary-exit messages#2258

Merged
NeoPlays merged 1 commit into
stereum-dev:mainfrom
gap-editor:1
May 22, 2025
Merged

Remove data wrapper from exported voluntary-exit messages#2258
NeoPlays merged 1 commit into
stereum-dev:mainfrom
gap-editor:1

Conversation

@gap-editor

Copy link
Copy Markdown
Contributor

PR Description

When users export a signed voluntary-exit message, the file currently contains the entire response object (wrapped in a data property).
This PR cleans up the export so that only the raw exit message JSON is saved, with no surrounding data wrapper—both for single- and multi-validator exports.

Key change
saveExitMessage() now strips any optional data field before writing the file.

fixes #2255

@NeoPlays NeoPlays left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

lgtm

@NeoPlays NeoPlays merged commit a64cfb3 into stereum-dev:main May 22, 2025
3 of 4 checks passed
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.

[Bug]: Exported Exit Message should not include Propoerty data

2 participants