Skip to content

fix(gateway-contracts): overload isUserDecryptionReady with old signature#2137

Merged
mergify[bot] merged 1 commit intomainfrom
fix/simple-acl/gateway-is-user-decryption-ready-backward-compatibility
Mar 20, 2026
Merged

fix(gateway-contracts): overload isUserDecryptionReady with old signature#2137
mergify[bot] merged 1 commit intomainfrom
fix/simple-acl/gateway-is-user-decryption-ready-backward-compatibility

Conversation

@zmalatrax
Copy link
Contributor

For v0.12, with the removal of MultichainACL.sol we decided to update the signature of the view function isUserDecryptionReady, from isUserDecryptionReady(address, (bytes32, address)[], bytes) to isUserDecryptionReady((bytes32, address)[], bytes). See #1904

Though, it actually breaks the relayer main until the upgrade is done on testnet and mainnet ; as updating the rust bindings fhevm_gateway_bindings would remove the isUserDecryptionReady(address, (bytes32, address)[], bytes) selector currently deployed on testnet and mainnet.

Proposed solution is to overload the isUserDecryptionReady view function with its old signature, with a deprecation notice (custom label as not supported by NatSpec), which would allow backward compatibility during the upgrade window.

Then, once mainnet has been upgraded, the old signature overload can be removed in the next contract upgrade

@zmalatrax zmalatrax requested a review from a team as a code owner March 19, 2026 15:41
@cla-bot cla-bot bot added the cla-signed label Mar 19, 2026
jatZama
jatZama previously approved these changes Mar 19, 2026
@zmalatrax zmalatrax force-pushed the fix/simple-acl/gateway-is-user-decryption-ready-backward-compatibility branch 2 times, most recently from 9312a61 to d5e486e Compare March 19, 2026 16:38
@zmalatrax zmalatrax changed the title fix(gateway-contracts): overload isUserDecryptionReady with old signature for backward compatibility fix(gateway-contracts): overload isUserDecryptionReady with old signature Mar 19, 2026
@zmalatrax zmalatrax force-pushed the fix/simple-acl/gateway-is-user-decryption-ready-backward-compatibility branch from d5e486e to a511ea8 Compare March 20, 2026 08:56
Copy link
Collaborator

@leventdem leventdem left a comment

Choose a reason for hiding this comment

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

OK

@zmalatrax
Copy link
Contributor Author

@mergify queue

@mergify
Copy link

mergify bot commented Mar 20, 2026

Merge Queue Status

This pull request spent 1 hour 41 minutes 10 seconds in the queue, including 40 minutes 22 seconds running CI.

Required conditions to merge
  • #approved-reviews-by >= 1 [🛡 GitHub branch protection]
  • #changes-requested-reviews-by = 0 [🛡 GitHub branch protection]
  • #review-threads-unresolved = 0 [🛡 GitHub branch protection]
  • branch-protection-review-decision = APPROVED [🛡 GitHub branch protection]
  • check-success = run-e2e-tests / fhevm-e2e-test
  • any of [🛡 GitHub branch protection]:
    • check-success = common-pull-request/lint (bpr)
    • check-neutral = common-pull-request/lint (bpr)
    • check-skipped = common-pull-request/lint (bpr)
  • any of [🛡 GitHub branch protection]:
    • check-skipped = coprocessor-cargo-test/cargo-tests (bpr)
    • check-neutral = coprocessor-cargo-test/cargo-tests (bpr)
    • check-success = coprocessor-cargo-test/cargo-tests (bpr)
  • any of [🛡 GitHub branch protection]:
    • check-skipped = coprocessor-dependency-analysis/dependencies-check (bpr)
    • check-neutral = coprocessor-dependency-analysis/dependencies-check (bpr)
    • check-success = coprocessor-dependency-analysis/dependencies-check (bpr)
  • any of [🛡 GitHub branch protection]:
    • check-success = gateway-contracts-deployment-tests/sc-deploy (bpr)
    • check-neutral = gateway-contracts-deployment-tests/sc-deploy (bpr)
    • check-skipped = gateway-contracts-deployment-tests/sc-deploy (bpr)
  • any of [🛡 GitHub branch protection]:
    • check-success = kms-connector-tests/test-connector (bpr)
    • check-neutral = kms-connector-tests/test-connector (bpr)
    • check-skipped = kms-connector-tests/test-connector (bpr)

mergify bot added a commit that referenced this pull request Mar 20, 2026
@mergify mergify bot merged commit aa25e2e into main Mar 20, 2026
65 checks passed
@mergify mergify bot deleted the fix/simple-acl/gateway-is-user-decryption-ready-backward-compatibility branch March 20, 2026 11:01
@mergify mergify bot removed the queued label Mar 20, 2026
isaacdecoded pushed a commit that referenced this pull request Mar 20, 2026
…nature (#2137)

fix(gateway-contracts): overload isUserDecryptionReady with old signature
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants