Skip to content
This repository has been archived by the owner on Dec 23, 2024. It is now read-only.

Add feature to disable decryptions in transaction #36

Merged
merged 1 commit into from
Nov 13, 2023

Conversation

david-zk
Copy link
Contributor

Adds customization option to disable decryptions in transactions, blockchain will return an error if decryption attempted during transaction when flag is set

@dartdart26 @youben11

@david-zk david-zk force-pushed the feat/disable-decryptions-during-trx branch from 308955e to b987e4e Compare November 13, 2023 07:21
Copy link
Contributor

@dartdart26 dartdart26 left a comment

Choose a reason for hiding this comment

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

Nice!

environment.fhevmParams.DisableDecryptionsInTransaction = true
addr := common.Address{}
readOnly := false
// Call optimistic require with a false value and expect it succeeds.
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: This comment is not relevant here.

@david-zk david-zk force-pushed the feat/disable-decryptions-during-trx branch from b987e4e to c2ca675 Compare November 13, 2023 09:07
@david-zk david-zk merged commit b32ca7a into main Nov 13, 2023
1 check passed
@david-zk david-zk deleted the feat/disable-decryptions-during-trx branch November 13, 2023 09:18
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants