getAccountAddress function

String getAccountAddress(
  1. Wallet wallet
)

Implementation

String getAccountAddress(Wallet wallet) {
  final address = wallet.address ?? wallet.signer?.getAddress();
  if (address == null) {
    throw Exception('Address not found');
  } else {
    return address;
  }
}