邓心一 6 年之前
父節點
當前提交
70fee3b8cb
共有 2 個文件被更改,包括 3 次插入3 次删除
  1. 2 2
      contracts/ShowTrader.sol
  2. 1 1
      truffle.js

+ 2 - 2
contracts/ShowTrader.sol

@@ -9,7 +9,7 @@ contract ShowTrader is ShowOwnership {
     mapping (uint=>uint) public showToPrice;
     mapping (address=>uint) public ownerAccount;
     mapping (address=>bool) accountIsInit;
-    uint productsCount;
+    uint public productsCount;
 
     constructor () public {
         productsCount = 0;
@@ -56,4 +56,4 @@ contract ShowTrader is ShowOwnership {
         showToPrice[id] = price;
         emit Sell(id, price);
     }
-}
+}

+ 1 - 1
truffle.js

@@ -15,7 +15,7 @@
 const { readFileSync } = require('fs')
 const LoomTruffleProvider = require('loom-truffle-provider')
 
-const env = 'ubuntu' // 'ubuntu' or 'centos' for remove disposition, 'local' for local test
+const env = 'local' // 'ubuntu' or 'centos' for remove disposition, 'local' for local test
 
 let ipAddr
 let keyPath