Gnosis Safe adding a delegate using MetaMask.
We can add delegate by using Gnosis Safe owners private keys by following the steps as mentioned in https://github.com/gnosis/safe-docs/blob/devportal/docs/tutorial_tx_service_set_delegate.md
However, we do not want to extract the private keys from the hardware ledger wallet to create a delegate.
I was working on writing a script to sign the delegate using MetaMask. Here is code : https://github.com/virendrapatidar/multisig-delegator This works fine if Gnosis safe owner is the software wallet. However, it does not work if the owner is a ledger hardware wallet and sign by ledger hardware wallet using Metamask. The error is "Signature does not match provided delegator=xxxxx"
Any input will help.