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