Skip to content

fix(microprofile): implement checkVerification and verify methods in ContractVerificationClientImpl (issue #133)#135

Open
saksham869 wants to merge 5 commits into
hiero-ledger:mainfrom
saksham869:fix/microprofile-contract-verification
Open

fix(microprofile): implement checkVerification and verify methods in ContractVerificationClientImpl (issue #133)#135
saksham869 wants to merge 5 commits into
hiero-ledger:mainfrom
saksham869:fix/microprofile-contract-verification

Conversation

@saksham869

Copy link
Copy Markdown

Problem

ContractVerificationClientImpl.java in the MicroProfile module had two
methods throwing UnsupportedOperationException("Not implemented"):

  • checkVerification(ContractId)
  • verify(ContractId, String, Map<String, String>)

MicroProfile users could not verify smart contracts at all — both methods
failed at runtime.

Fix

Implemented both methods using JAX-RS (jakarta.ws.rs) and Jakarta JSON
APIs, following the same logic as the Spring module
(ContractVerificationClientImplementation.java).

  • Calls hashscan /check-by-addresses to check verification status
  • Posts to /verify to submit contract source for verification
  • Fetches /files/ to compare contract file content

No new dependencies added — uses libraries already available in the
MicroProfile module.

Closes #133

cc @hendrikebbers @manishdait

saksham869 added 5 commits May 4, 2026 18:46
Signed-off-by: satyam mishra <mishrasatyam3456@gmail.com>
…ider (issue hiero-ledger#131)

Signed-off-by: satyam mishra <mishrasatyam3456@gmail.com>
…ider (issue hiero-ledger#131)

Signed-off-by: satyam mishra <mishrasatyam3456@gmail.com>
…ider (issue hiero-ledger#131)

Signed-off-by: satyam mishra <mishrasatyam3456@gmail.com>
…ContractVerificationClientImpl (issue hiero-ledger#133)

Signed-off-by: satyam mishra <mishrasatyam3456@gmail.com>

@manishdait manishdait left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@saksham869 Thanks for the PR, there are some changes related to the cli example which are out of scope for this PR. Please remove them.

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.

MicroProfile ContractVerificationClientImpl missing implementation for checkVerification and verify methods

2 participants