CosmosWallet.convert constructor

CosmosWallet.convert(
  1. CosmosWallet wallet,
  2. CosmosNetworkInfo networkInfo
)

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

Implementation

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