Skip to content

Delete values regardless of whether they are truthy#15

Merged
AnthonyFuller merged 3 commits intothepeacockproject:mainfrom
moonysolari:fix-value-deletion
Apr 26, 2023
Merged

Delete values regardless of whether they are truthy#15
AnthonyFuller merged 3 commits intothepeacockproject:mainfrom
moonysolari:fix-value-deletion

Conversation

@moonysolari
Copy link
Copy Markdown
Member

Value and ContractId were only deleted from the context when they are truthy. This caused some challenge contexts to have Value: "" in them (see issue 207 in the Peacock repo). This pr fixes this. It also changes the way the Value is passed such that if the context already has Value: "", it will not overwrite the actual Value that needs to be passed (same for ContractId). Ultimately, this PR fixes Mirror Mirror on the Wall being broken.

@moonysolari moonysolari self-assigned this Apr 26, 2023
Copy link
Copy Markdown
Contributor

@AnthonyFuller AnthonyFuller left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks!

@AnthonyFuller AnthonyFuller merged commit f4aa7be into thepeacockproject:main Apr 26, 2023
@moonysolari moonysolari deleted the fix-value-deletion branch April 26, 2023 09:03
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