1

This is the code

const safeFactory = await SafeFactory.init({
            provider: rpcUrl,
            signer: signerAddress
});

This is the error

Error: invalid account
    at JsonRpcProvider.getSigner

The intention is to be able to use the safe factory with a hardware wallet and run the code as a script (no UI). It worked in previous versions of the safe SDK.

1 Answer 1

1

You will need to use either an EIP-1193 provider as the provider, or a private key as the signer (not the address). You can not use a string provider and a string address at the same time.

Hope it answers your question! Best, Louis

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.