Skip to content

fix: preserve EIP712Challenge required to fetch compute logs#167

Merged
jbern0rd merged 2 commits intomainfrom
fix/preserve-eip-712-challenge
Apr 27, 2026
Merged

fix: preserve EIP712Challenge required to fetch compute logs#167
jbern0rd merged 2 commits intomainfrom
fix/preserve-eip-712-challenge

Conversation

@jbern0rd
Copy link
Copy Markdown
Contributor

No description provided.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the EIP-712 challenge representation and signing flow to ensure the serialized EIP712Challenge payload includes required fields (notably primaryType) for downstream use cases like fetching compute logs, while migrating token-building in tests to the newer EIP712TypedData-based signing.

Changes:

  • Reworked EIP712Challenge into a dedicated JSON-serializable wrapper containing types, primaryType, domain, and message.
  • Added SignerService#signTypedDataForDomainAndBuildToken(...) and updated signing tests to use typed-data signing instead of deprecated EIP712Entity signing.
  • Fixed a logging format typo in SignerService and updated related JSON expectations in tests.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
src/main/java/com/iexec/commons/poco/eip712/entity/EIP712Challenge.java Replaces the prior EIP712Entity-based implementation with an explicit wrapper to preserve required EIP-712 JSON structure.
src/main/java/com/iexec/commons/poco/chain/SignerService.java Adds typed-data token builder and adjusts deprecation messaging; fixes log formatting typo.
src/test/java/com/iexec/commons/poco/eip712/entity/EIP712ChallengeTests.java Updates expected JSON serialization string to match the new EIP712Challenge structure.
src/test/java/com/iexec/commons/poco/chain/SignerServiceTests.java Migrates token-building test to the typed-data signing API (no longer uses EIP712Challenge).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/main/java/com/iexec/commons/poco/chain/SignerService.java Outdated
@sonarqubecloud
Copy link
Copy Markdown

@jbern0rd jbern0rd merged commit 050770f into main Apr 27, 2026
5 checks passed
@jbern0rd jbern0rd deleted the fix/preserve-eip-712-challenge branch April 27, 2026 16:18
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.

3 participants