You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’ve recently started using the safe-sdk and came across what seems to be a type mismatch. When using the getMultisigTransactions method from SafeApiKit (imported from @safe-global/api-kit) on an instance of new SafeApiKit, the API returns structured data for the dataDecoded field. However, the SafeMultisigTransactionResponse type, which is the return type of the getMultisigTransactions method, defines dataDecoded as a string as seen here.
Could you confirm if this is expected behavior or if the type definition needs to be updated?
Thanks for your help!
What I do is very simple:
constgetTransactionList=async()=>{constsafeApiClient=newSafeApiKit({ chainId })// I put the instance creation here for simplicity of having the relevant line of codesconsttrxList=awaitsafeApiClient.getMultisigTransactions(process.env.NEXT_PUBLIC_SAFE_WALLET_ADDRESS)returntrxList}
What it returns:
Environment
Safe Core SDK versions:
api-kit: 2.5.4
protocol-kit: 5.0.4
relay-kit: 3.2.4
types-kit: 1.0.0
sdk-starter-kit:
Safe contract version: 1.4.1+L2
Environment:
browser: chrome
Expected result
The field of decodedDatahere respects the return type of the api field.
Additional context
I'm using the sdk in a nextjs project.
The text was updated successfully, but these errors were encountered:
Description
Hi there,
I’ve recently started using the safe-sdk and came across what seems to be a type mismatch. When using the
getMultisigTransactions
method from SafeApiKit (imported from @safe-global/api-kit) on an instance of new SafeApiKit, the API returns structured data for thedataDecoded
field. However, theSafeMultisigTransactionResponse
type, which is the return type of thegetMultisigTransactions
method, definesdataDecoded as a string
as seen here.Could you confirm if this is expected behavior or if the type definition needs to be updated?
Thanks for your help!
What I do is very simple:
What it returns:
Environment
2.5.4
5.0.4
3.2.4
1.0.0
1.4.1+L2
Expected result
The field of
decodedData
here respects the return type of the api field.Additional context
I'm using the sdk in a nextjs project.
The text was updated successfully, but these errors were encountered: