simulateTransaction method
Takes hex string on mobile and json tx request on web
Implementation
@override
Future<CallResult> simulateTransaction(
{required String transactionRequestHexOrJson}) async {
final callResultStr = await promiseToFuture(js_wallet.simulateTransaction(
_wallet.privateKey, _wallet.networkUrl, transactionRequestHexOrJson));
final callResultJson = jsonDecode(callResultStr);
try {
return CallResult.fromJson(callResultJson);
} catch (err) {
return Future.error(err);
}
}