pushSendTransaction function
Future<String>
pushSendTransaction(
- BuildContext context,
- TransactionMessage transaction,
- UniPassConfig config
Implementation
Future<String> pushSendTransaction(BuildContext context, TransactionMessage transaction, UniPassConfig config) async {
final String url = getWalletUrl(MessageType.upSendTransaction, config.domain, config.protocol);
print("[pushSignMessage: $url]");
Completer<String> completer = Completer<String>();
Navigator.push(
context,
MaterialPageRoute(
builder: (context) => SendTransactionPage(
transactionFuture: completer,
url: url,
transaction: transaction,
appSetting: config.appSetting,
),
),
);
return completer.future;
}