import{hexlify as n}from"@ethersproject/bytes";import{toUtf8Bytes as i}from"@ethersproject/strings";var c=async(s,e,t)=>{if(s.provider?.wc){let r=n(i(t));return await s.provider?.wc.signPersonalMessage([r,e])}return s.getSigner(e).signMessage(t)};export{c as signMessage};
