pushSendTransaction function

Future<String> pushSendTransaction(
  1. BuildContext context,
  2. TransactionMessage transaction,
  3. 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;
}