Skip to content

Commit

Permalink
Fix worker creation submit error close bitshares#366
Browse files Browse the repository at this point in the history
  • Loading branch information
svk31 committed Sep 7, 2017
1 parent c0bfb58 commit 42b5155
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions web/app/api/ApplicationApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -275,18 +275,15 @@ class ApplicationApi {
}

createWorker(options, account) {

console.log("template:", TransactionHelper.template("worker_create"));
return new Promise((resolve, reject) => {
let tr = new TransactionBuilder();
console.log("ops:", ops["worker_initializer"], ops["vesting_balance_worker_initializer"].toObject(undefined));
const core = ChainStore.getAsset("1.3.0");
if (!core) reject(new Error("Can't find core asset, please try again"));
let precision = Math.pow(10, core.get("precision"));

const owner = ChainStore.getAccount(account).get("id");
if (!owner) reject(new Error("Can't find the owner account, please try again"));

try {
tr.add_type_operation("worker_create", {
fee: {
Expand Down

0 comments on commit 42b5155

Please sign in to comment.