Wallet.convert constructor

Wallet.convert(
  1. Wallet wallet,
  2. NetworkInfo networkInfo
)

Creates a new Wallet instance based on the existent wallet for the given networkInfo.

Implementation

factory Wallet.convert(
  Wallet wallet,
  NetworkInfo networkInfo,
) {
  return Wallet(
    networkInfo: networkInfo,
    address: wallet.address,
    privateKey: wallet.privateKey,
    publicKey: wallet.publicKey,
  );
}