generateBCSSimulation static method

Future<Uint8List> generateBCSSimulation(
  1. AptosAccount accountFrom,
  2. RawTransaction rawTxn
)

Implementation

static Future<Uint8List> generateBCSSimulation(AptosAccount accountFrom, RawTransaction rawTxn) async {
  final txnBuilder = TransactionBuilderEd25519(
    accountFrom.pubKey().toUint8Array(),
    (Uint8List _signingMessage) => Ed25519Signature(Uint8List(64)));

  return txnBuilder.sign(rawTxn);
}