Skip to content

build_assertion error doesn't propagate to parachain #1392

@Kailai-Wang

Description

@Kailai-Wang

Context

Repro-case:

  • set user shielding key for "//Bob"
  • request vc (e.g. A1) for "//Alice"

In tee-worker I see:

[2023-03-02T09:29:30Z DEBUG ita_stf::trusted_call_litentry] who "d43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d", assertion A1
[2023-03-02T09:29:30Z ERROR ita_stf::trusted_call_litentry] user shielding key is missing, "d43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d", A1
[2023-03-02T09:29:30Z ERROR itp_stf_executor::executor] Stf execute failed: AssertionBuildFail

which is good.
However, such error never arrives in parachain.

When I check the code, we never properly handle the errors:
https://github.com/litentry/litentry-parachain/blob/19951d385f70f3cb676653e22008638c4abdc234/tee-worker/app-libs/stf/src/trusted_call.rs#L601

Please also have ts-tests for this


✔️ Please set appropriate labels and assignees if applicable.

Metadata

Metadata

Labels

D2-bugSomething isn't workingI2-mediumshould be completed within 10 working days

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions