Prefix data with 0x especially for estimateGas.

pull/1/head
chriseth 9 years ago
parent da1fee512a
commit ad98394b3e
  1. 2
      assets/js/universal-dapp.js

@ -409,6 +409,8 @@ UniversalDApp.prototype.runTx = function( data, args, cb) {
var to = args.address;
var constant = args.abi.constant;
var isConstructor = args.bytecode !== undefined;
if (data.slice(0, 2) != '0x')
data = '0x' + data;
var gas = self.options.getGas ? self.options.getGas : 1000000;
var value = self.options.getValue ? self.options.getValue : 0;

Loading…
Cancel
Save