Skip to content

Commit

Permalink
fix 'self' in prepareExo (#10557)
Browse files Browse the repository at this point in the history
_incidental_

## Description
Fix the type for `prepareExo` so `this.self` works.

### Security Considerations
n/a
### Scaling Considerations
n/a

### Documentation Considerations
n/a

### Testing Considerations
CI

### Upgrade Considerations
n/a
  • Loading branch information
mergify[bot] authored Nov 22, 2024
2 parents 0105e1a + 0ca4a94 commit c951fdc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions packages/fast-usdc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
],
"timeout": "20m"
},
"license": "Apache-2.0",
"publishConfig": {
"access": "public"
}
Expand Down
5 changes: 4 additions & 1 deletion packages/vat-data/src/exo-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,10 @@ export const makeExoUtils = VatData => {
* @param {Baggage} baggage
* @param {string} kindName
* @param {InterfaceGuard | undefined} interfaceGuard
* @param {M} methods
* @param {M &
* ThisType<{
* self: RemotableObject & M;
* }>} methods
* @param {DefineKindOptions<{ self: M }>} [options]
* @returns {import('@endo/exo').Guarded<M>}
*/
Expand Down
2 changes: 0 additions & 2 deletions packages/zoe/src/zoeService/installationStorage.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ export const makeInstallationStorage = (getBundleCapForID, zoeBaggage) => {
InstallationStorageI,
{
async installBundle(allegedBundle, bundleLabel) {
// @ts-expect-error TS doesn't understand context
const { self } = this;
// Bundle is a very open-ended type and we must decide here whether to
// treat it as either a HashBundle or SourceBundle. So we have to
Expand Down Expand Up @@ -149,7 +148,6 @@ export const makeInstallationStorage = (getBundleCapForID, zoeBaggage) => {
}
},
async getBundleIDFromInstallation(allegedInstallation) {
// @ts-expect-error TS doesn't understand context
const { self } = this;
const { bundleID } = await self.unwrapInstallation(allegedInstallation);
// AWAIT
Expand Down

0 comments on commit c951fdc

Please sign in to comment.