Unverified Commit 15b06fc7 authored by Liana Husikyan's avatar Liana Husikyan Committed by GitHub

Update universalDapp.js

parent a40b7cec
...@@ -248,8 +248,8 @@ module.exports = class UniversalDApp { ...@@ -248,8 +248,8 @@ module.exports = class UniversalDApp {
* @param {String} data - data to send with the transaction ( return of txFormat.buildData(...) ). * @param {String} data - data to send with the transaction ( return of txFormat.buildData(...) ).
* @param {Function} callback - callback. * @param {Function} callback - callback.
*/ */
callFunction (to, data, confirmationCb, continueCb, promptCb, callback) { sendRawTransaction (to, data, confirmationCb, continueCb, promptCb, callback) {
this.runTx({to, data, useCall: null}, confirmationCb, continueCb, promptCb, (error, txResult) => { this.runTx({to, data, useCall: false}, confirmationCb, continueCb, promptCb, (error, txResult) => {
// see universaldapp.js line 660 => 700 to check possible values of txResult (error case) // see universaldapp.js line 660 => 700 to check possible values of txResult (error case)
callback(error, txResult) callback(error, txResult)
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment