Skip to content

Commit 307ea48

Browse files
committed
fix indent
1 parent 73b8f4e commit 307ea48

File tree

3 files changed

+13
-11
lines changed

3 files changed

+13
-11
lines changed

iwallet/contract/contract.js

+9-9
Original file line numberDiff line numberDiff line change
@@ -228,16 +228,16 @@ fs.readFile(file, 'utf8', function(err, contents) {
228228
if (contents === undefined) {
229229
throw new Error("invalid file content. Is " + file + " exists?")
230230
}
231-
console.log('before calling process, len = ' + contents.length);
231+
//console.log('before calling process, len = ' + contents.length);
232232
let [newSource, abi] = processContract(contents);
233-
console.log('after calling process, newSource len = ' + newSource.length + ", abi len = " + abi.length);
234-
235-
fs.writeFile(file + ".after", newSource, function(err) {
236-
if(err) {
237-
return console.log(err);
238-
}
239-
console.log("The new contract file was saved as " + file + ".after");
240-
});
233+
//console.log('after calling process, newSource len = ' + newSource.length + ", abi len = " + abi.length);
234+
235+
//fs.writeFile(file + ".after", newSource, function(err) {
236+
// if(err) {
237+
// return console.log(err);
238+
// }
239+
// console.log("The new contract file was saved as " + file + ".after");
240+
//});
241241

242242
fs.writeFile(file + ".abi", abi, function(err) {
243243
if(err) {

iwallet/publish.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,9 @@ var publishCmd = &cobra.Command{
6464
if err := sdk.checkTransaction(txHash); err != nil {
6565
return err
6666
}
67-
fmt.Println("The contract id is Contract" + txHash)
67+
if !update {
68+
fmt.Println("The contract id is Contract" + txHash)
69+
}
6870
}
6971
return nil
7072
},

iwallet/root.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ func init() {
5050
rootCmd.PersistentFlags().StringVarP(&sdk.signAlgo, "sign_algo", "", "ed25519", "Sign algorithm")
5151
rootCmd.PersistentFlags().Float64VarP(&sdk.gasLimit, "gas_limit", "l", 1000000, "gasLimit for a transaction")
5252
rootCmd.PersistentFlags().Float64VarP(&sdk.gasRatio, "gas_ratio", "p", 1.0, "gasRatio for a transaction")
53-
rootCmd.PersistentFlags().StringVarP(&sdk.amountLimit, "amount_limit", "", "", "amount limit for one transaction, eg iost:300.00|ram:2000")
53+
rootCmd.PersistentFlags().StringVarP(&sdk.amountLimit, "amount_limit", "", "*:unlimited", "amount limit for one transaction, eg iost:300.00|ram:2000")
5454
rootCmd.PersistentFlags().Int64VarP(&sdk.expiration, "expiration", "e", 60*5, "expiration time for a transaction,for example,-e 60 means the tx will expire after 60 seconds from now on")
5555

5656
//rootCmd.PersistentFlags().StringVarP(&dest, "dest", "d", "default", "Set destination of output file")

0 commit comments

Comments
 (0)