fromRust static method

Future<MobileWalletUnlocked> fromRust(
  1. WalletUnlocked rustWalletUnlocked,
  2. String networkUrl
)

Implementation

static Future<MobileWalletUnlocked> fromRust(
    fuels.WalletUnlocked rustWalletUnlocked, String networkUrl) async {
  final bech32Address = await rustWalletUnlocked.address.toBech32String();
  final b256Address = await rustWalletUnlocked.address.toB256String();
  return MobileWalletUnlocked(
      rustWalletUnlocked: rustWalletUnlocked,
      networkUrl: networkUrl,
      b256Address: addHexPrefix(b256Address),
      bech32Address: bech32Address);
}