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
This discrepancy results in safe.singleton being undefined when calling:
constsafe=awaitapiKit.getSafeInfo(safe)
Environment
Safe Core SDK versions:
api-kit: 2.5.4
protocol-kit:
relay-kit:
types-kit:
sdk-starter-kit:
Safe contract version:
Environment:
browser
non-browser
Steps to reproduce
constsafe='0x...'// some safe on MainnetconstapiKit=newSafeApiKit({chainId: 1})constsafe=awaitapiKit.getSafeInfo(safe)expect(safe.singleton).toBeDefined()// fails
Expected result
The response should consistently return a singleton field, correctly mapping the masterCopy value from the transaction-service response.
Additional context
Workaround:
constsafe='0x...'// some safe on MainnetconstapiKit=newSafeApiKit({chainId: 1})constsafe=awaitapiKit.getSafeInfo(safe)expect(safe['masterCopy']).toBeDefined()// success
The text was updated successfully, but these errors were encountered:
Description
There is a mismatch between the APIKit result and the transaction-service response, leading to an
undefined
value.The transaction-service returns a
masterCopy
field as part of the/api/v1/safes/<safe>/
endpoint response:However, APIKit expects and handles this value under the
singleton
field:https://github.com/safe-global/safe-core-sdk/blob/main/packages/api-kit/src/types/safeTransactionServiceTypes.ts#L44-L54
This discrepancy results in
safe.singleton
beingundefined
when calling:Environment
Steps to reproduce
Expected result
The response should consistently return a
singleton
field, correctly mapping themasterCopy
value from the transaction-service response.Additional context
Workaround:
The text was updated successfully, but these errors were encountered: