Make sure to install the connector with the correct version (@3 for sdk v3, @4 for sdk v4, etc...):
npm install @dynamic-labs-connectors/safe-evm@3
To integrate with the Dynamic SDK, you just need to pass SafeEvmConnectors
to the walletConnectors
prop of the DynamicContextProvider
component.
import { DynamicContextProvider } from '@dynamic-labs/sdk-react-score';
import { SafeEvmConnectors } from '@dynamic-labs-connectors/safe-evm';
const App = () => {
return (
<DynamicContextProvider
settings={{
environmentId: 'REPLACE-WITH-YOUR-ENVIRONMENT-ID',
walletConnectors: [SafeEvmConnectors],
}}
>
<DynamicWidget />
</DynamicContextProvider>
);
};
Run nx build @dynamic-labs-connectors/safe-evm
to build the library.
Run nx test @dynamic-labs-connectors/safe-evm
to execute the unit tests via Jest.