aptos-labs / aptos-wallet-adapter

A monorepo modular wallet adapter for Aptos applications
https://aptos-labs.github.io/aptos-wallet-adapter/
Apache License 2.0
88 stars 97 forks source link

Pontem wallet doesn't implement `signMessage` properly #430

Open gsong opened 2 weeks ago

gsong commented 2 weeks ago
import { useWallet } from "@aptos-labs/wallet-adapter-react";
...
    const { account, network, signMessage } = useWallet();
    const response = await signMessage({
      message: account.address,
      nonce: Date.now().toString(),
      application: true,
    });

When using Pontem, response is undefined. signMessage is one of the standard functions so I would think it needs to be implemented.

The same code works for Petra and Nightly wallets.