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

No exported member SafeMultisigTransactionResponse in safe-core-sdk-types #312

Closed
0xnexusflip opened this issue Dec 15, 2022 · 6 comments
Closed

Comments

@0xnexusflip
Copy link

0xnexusflip commented Dec 15, 2022

Description

When trying to import Safe from @safe-global/safe-core-sdk and compiling a resulting TypeScript file that uses it the following error shows up:

error TS2305: Module '"@safe-global/safe-core-sdk-types"' has no exported member 'SafeMultisigTransactionResponse'.

import { EthAdapter, MetaTransactionData, SafeMultisigTransactionResponse, SafeTransaction, SafeTransactionDataPartial, SafeVersion, TransactionOptions, TransactionResult } from '@safe-global/safe-core-sdk-types';

Found 1 error in node_modules/@safe-global/safe-core-sdk/dist/src/Safe.d.ts:2

Environment

  • Safe Core SDK version: 3.2.1
  • Safe Core SDK Types version: 1.7.0
  • Environment:
    • non-browser

Steps to reproduce

  • Import Safe from @safe-global/safe-core-sdk in a TypeScript file
  • Attempt compiling the file using the tsc command in a terminal instance

Current result:
TS_compile_error_Safe_SDK

Expected result

Expect SafeMultisigTransactionResponse to be imported when using Safe from @safe-global/safe-core-sdk

@0xnexusflip 0xnexusflip changed the title No exported member 'SafeMultisigTransactionResponse' in safe-core-sdk-types No exported member SafeMultisigTransactionResponse in safe-core-sdk-types Dec 15, 2022
@sourav-bz
Copy link

facing the same issue.

@richikchanda1999
Copy link

Having the same issue, since yesterday.

@swetshaw
Copy link

Thanks @0xnexusflip for raising this issue, can any one from the safe team @germartinez @rmeissner please help 🙏. Our dApp is built on top of Safe and now it has stopped working because of this issue.

@germartinez
Copy link
Member

Thanks for reporting it, I'll check it and fix it as soon as possible. Meanwhile please use the previous version.

@0xnexusflip
Copy link
Author

Using the '@gnosis.pm/safe-core-sdk' library seems to fix the issue but then when actually running the script I encounter issue #287

@germartinez
Copy link
Member

@0xnexusflip @sourav-bz @richikchanda1999 @swetshaw
New versions of all the Safe Core SDK packages have been published. Please check again

Specifically:

  • safe-core-sdk v3.2.2
  • safe-core-sdk-types v1.6.0
  • safe-core-sdk-utils: v1.8.0
  • safe-web3-lib: v1.8.0
  • safe-ethers-lib: v1.8.0
  • safe-service-client: v1.5.0

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

5 participants