# Please help with: "Error in oracle callback popCapsule: No capsules available"; if constructor is public

**URL:** https://forum.aztec.network/t/please-help-with-error-in-oracle-callback-popcapsule-no-capsules-available-if-constructor-is-public/5313
**Category:** Aztec
**Created:** [April 1, 2024, 3:45pm UTC](https://forum.aztec.network/t/please-help-with-error-in-oracle-callback-popcapsule-no-capsules-available-if-constructor-is-public/5313 "2024-04-01T15:45:16Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![n0m44](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.aztec.network/n0m44/32/1318_2.png) [@n0m44](https://forum.aztec.network/u/n0m44)
#### Post date: [April 1, 2024, 3:45pm UTC](https://forum.aztec.network/t/please-help-with-error-in-oracle-callback-popcapsule-no-capsules-available-if-constructor-is-public/5313/1 "2024-04-01T15:45:16Z")

</div>

If i try deploy contract with public constructor:

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/aztec/original/2X/7/71d95df9935c530f6cb9805ac428f6997f311331.png)

i got errors in aztec-sandbox:

```auto
maztec-1 | node WARN Simulated tx 06f5f029982338126a67798915cb0d7149882628170b8a608465fa7f12dae883 reverts: Error: Failed to solve brillig function, reason: explicit trap hit in brillig
aztec-1 | simulator:acvm ERROR Error in oracle callback popCapsule: No capsules available
aztec-1 | simulator:acvm ERROR Error in oracle callback callPrivateFunction: Error awaiting `foreign_call_handler`
aztec-1 | simulator:acvm ERROR Error in oracle callback popCapsule: No capsules available
aztec-1 | simulator:acvm ERROR Error in oracle callback callPrivateFunction: Error awaiting `foreign_call_handler`
aztec-1 | simulator:acvm ERROR Error in oracle callback popCapsule: No capsules available
aztec-1 | simulator:acvm ERROR Error in oracle callback callPrivateFunction: Error awaiting `foreign_call_handler`

```

if i remove SharedImmutable variables and their initialization + sign to constructor as private - contract deployment will work fine

Please tell me what I need to do to initialize these variables?

---

<div class="post-metadata">

### Author: ![spalladino](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.aztec.network/spalladino/32/32_2.png) [@spalladino](https://forum.aztec.network/u/spalladino)
#### Post date: [April 4, 2024, 10:06pm UTC](https://forum.aztec.network/t/please-help-with-error-in-oracle-callback-popcapsule-no-capsules-available-if-constructor-is-public/5313/2 "2024-04-04T22:06:39Z")

</div>

Hey @n0m44! Apologies for the delay in the response. Could you try commenting out the `balances.at(...).add(...)` line and trying again? I think the issue may be that `EasyPrivateUint` storage is meant to be used from _private_ functions, that’s why it’s failing now, and why it works when you switch the constructor to private.

If so, this means we need to do a better job at preventing private-only methods from being called in a public context, and vice-versa!

Edit: Just tried your code locally and got the same error `Failed to solve brillig function, reason: explicit trap hit in brillig`, which comes from trying to call `.add` on an `EasyPrivateUint`. Confirmed that’s the error.

---

<div class="post-metadata">

### Author: ![spalladino](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.aztec.network/spalladino/32/32_2.png) [@spalladino](https://forum.aztec.network/u/spalladino)
#### Post date: [April 5, 2024, 11:36am UTC](https://forum.aztec.network/t/please-help-with-error-in-oracle-callback-popcapsule-no-capsules-available-if-constructor-is-public/5313/3 "2024-04-05T11:36:42Z")

</div>

One more thing @n0m44: I wasn’t able to reproduce the capsule errors you got. Could you share the code you were using for deployment and versions, to see if we can figure out why that’s happening?
