Skip to content

spregistry: extend UnpackIntoInterface fix to getProviderWithProduct#17

Merged
parkan merged 1 commit into
masterfrom
fix/getProviderWithProduct
May 1, 2026
Merged

spregistry: extend UnpackIntoInterface fix to getProviderWithProduct#17
parkan merged 1 commit into
masterfrom
fix/getProviderWithProduct

Conversation

@parkan
Copy link
Copy Markdown
Collaborator

@parkan parkan commented May 1, 2026

d91ba0c covered Contract.GetProvider and GetProviderByAddress but Service.GetProviderByAddress chains down to Service.GetProvider, which internally calls Contract.GetProviderWithProduct -- still on the broken UnpackIntoInterface path. Caught on calibnet:

failed to unpack getProviderWithProduct result: abi: cannot unmarshal
struct { ProviderId ...; ProviderInfo ...; Product ...;
ProductCapabilityValues [][]uint8 } in to *big.Int

Switch to unpackSingleTuple + json-tagged getProviderWithProductOutput mirroring the existing pattern. Add a synthetic-payload test.

d91ba0c covered Contract.GetProvider and GetProviderByAddress but
Service.GetProviderByAddress chains down to Service.GetProvider, which
internally calls Contract.GetProviderWithProduct -- still on the broken
UnpackIntoInterface path. Caught on calibnet:

  failed to unpack getProviderWithProduct result: abi: cannot unmarshal
  struct { ProviderId ...; ProviderInfo ...; Product ...;
  ProductCapabilityValues [][]uint8 } in to *big.Int

Switch to unpackSingleTuple + json-tagged getProviderWithProductOutput
mirroring the existing pattern. Add a synthetic-payload test.
@parkan parkan merged commit 2406bd9 into master May 1, 2026
6 checks passed
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.

1 participant