Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] - Property 'handle' in type 'AbstractContractHandler<State>' is not assignable to the same property in base type 'HandlerApi<State>'. #526

Open
dtfiedler opened this issue May 28, 2024 · 0 comments

Comments

@dtfiedler
Copy link
Contributor

Describe the bug

Property 'handle' in type 'AbstractContractHandler<State>' is not assignable to the same property in base type 'HandlerApi<State>'.
  Type '<Input, Result>(executionContext: import("/Users/dylanfiedler/Documents/ario/arns/arns-service/node_modules/warp-contracts/lib/types/core/ExecutionContext").ExecutionContext<State>, currentResult: import("/Users/dylanfiedler/Documents/ario/arns/arns-service/node_modules/warp-contracts/lib/types/core/modules/StateEva...' is not assignable to type '<Input, Result>(executionContext: import("/Users/dylanfiedler/Documents/ario/arns/arns-service/node_modules/warp-contracts/lib/types/core/ExecutionContext").ExecutionContext<State>, currentResult: import("/Users/dylanfiedler/Documents/ario/arns/arns-service/node_modules/warp-contracts/lib/types/core/modules/StateEva...'. Two different types with this name exist, but they are unrelated.
    Type 'Promise<InteractionResult<State, Result | undefined>>' is not assignable to type 'Promise<(Without<WarpInteractionResult<State, Result>, AoInteractionResult<Result>> & AoInteractionResult<Result>) | (Without<...> & ... 1 more ... & { ...; })>'.
      Type 'InteractionResult<State, Result | undefined>' is not assignable to type '(Without<WarpInteractionResult<State, Result>, AoInteractionResult<Result>> & AoInteractionResult<Result>) | (Without<...> & ... 1 more ... & { ...; })'.
        Type 'Without<WarpInteractionResult<State, Result | undefined>, AoInteractionResult<Result | undefined>> & AoInteractionResult<...>' is not assignable to type '(Without<WarpInteractionResult<State, Result>, AoInteractionResult<Result>> & AoInteractionResult<Result>) | (Without<...> & ... 1 more ... & { ...; })'.
          Type 'Without<WarpInteractionResult<State, Result | undefined>, AoInteractionResult<Result | undefined>> & AoInteractionResult<...>' is not assignable to type 'Without<WarpInteractionResult<State, Result>, AoInteractionResult<Result>> & AoInteractionResult<Result>'.
            Type 'Without<WarpInteractionResult<State, Result | undefined>, AoInteractionResult<Result | undefined>> & AoInteractionResult<...>' is not assignable to type 'AoInteractionResult<Result>'.
              Types of property 'Output' are incompatible.
                Type 'Result | undefined' is not assignable to type 'Result'.
                  'Result' could be instantiated with an arbitrary type which could be unrelated to 'Result | undefined'.ts(2416)

To Reproduce
Steps to reproduce the behavior.
Refer to this branch in the arns-service.

Desktop (please complete the following information):

  • OS: [e.g. Linux] - linx
  • Node.js version - v18.19.1
  • warp-contracts SDK version - v1.45.0
@dtfiedler dtfiedler changed the title [BUG] - [BUG] - Property 'handle' in type 'AbstractContractHandler<State>' is not assignable to the same property in base type 'HandlerApi<State>'. May 28, 2024
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

No branches or pull requests

1 participant