File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1- import { PlainMessage } from '@bufbuild/protobuf' ;
1+ import { PartialMessage } from '@bufbuild/protobuf' ;
22import { createContextKey } from '@connectrpc/connect' ;
33import {
44 AuthorizeRequest ,
55 AuthorizeResponse ,
66} from '@penumbra-zone/protobuf/penumbra/custody/v1/custody_pb' ;
77
88export const authorizeCtx = createContextKey <
9- ( req : PlainMessage < AuthorizeRequest > ) => Promise < PlainMessage < AuthorizeResponse > >
9+ ( req : PartialMessage < AuthorizeRequest > ) => Promise < AuthorizeResponse >
1010> ( undefined as never ) ;
Original file line number Diff line number Diff line change 1- import { PlainMessage } from '@bufbuild/protobuf' ;
1+ import { PartialMessage } from '@bufbuild/protobuf' ;
22import { createContextValues , createHandlerContext , HandlerContext } from '@connectrpc/connect' ;
33import { CustodyService } from '@penumbra-zone/protobuf' ;
44import { Metadata } from '@penumbra-zone/protobuf/penumbra/core/asset/v1/asset_pb' ;
@@ -23,7 +23,7 @@ describe('Authorize request handler', () => {
2323 let req : AuthorizeRequest ;
2424
2525 const mockFullViewingKeyCtx = vi . fn ( ( ) => Promise . resolve ( testFullViewingKey ) ) ;
26- const mockAuthorizeCtx = vi . fn ( ( { plan } : PlainMessage < AuthorizeRequest > ) =>
26+ const mockAuthorizeCtx = vi . fn ( ( { plan } : PartialMessage < AuthorizeRequest > ) =>
2727 Promise . resolve (
2828 new AuthorizeResponse ( { data : authorizePlan ( testSpendKey , new TransactionPlan ( plan ) ) } ) ,
2929 ) ,
You can’t perform that action at this time.
0 commit comments