Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import { createInstances } from '../instance';
import { getSigners, initSigners } from '../signers';
import { delegatedUserDecryptSingleHandle, waitForBlock } from '../utils';

const USER_DECRYPTION_NOT_DELEGATED_SELECTOR = '0x0190c506';

describe('Delegated user decryption', function () {
this.timeout(600000);

before(async function () {
await initSigners(3);
this.signers = await getSigners();
Expand Down Expand Up @@ -243,9 +243,7 @@ describe('Delegated user decryption', function () {
this.signers.bob,
privateKey,
publicKey,
)
).to.be.rejectedWith(
new RegExp(USER_DECRYPTION_NOT_DELEGATED_SELECTOR),
);
),
).to.be.rejectedWith('Execution reverted');
Copy link
Contributor

@isaacdecoded isaacdecoded Mar 10, 2026

Choose a reason for hiding this comment

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

@tawadaa do you know why the error changed? Maybe something has changed on the Relayer side?

In this case, I think the const declared at line 8 is not needed anymore.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not sure if it changed, but the error we observed is an Execution reverted with and error 500

Copy link
Contributor

Choose a reason for hiding this comment

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

The error from relayer didn't change. Relater sends only an abstracted information (labels) and a message intended for user. Revert selector is not there, since we do the ACL as boolena check (isDelegatedUserDecryptReady).

However, the message will also change in the incoming 0.12 release due to Host ACL feature.

});
});