if (typeof window.ethereum !== 'undefined') {
await connectWallet('injected')
if (address) {
getNonce(address)
.then((response: AxiosResponse<{ message: string, nonce: string }>) => {
if (response && response.data) {
if (response.data.message) {
Web3.eth.personal.sign(
response.data.message, address
)
}
}
})
}
}
это код