Commit 5bbc760e authored by vipwzw's avatar vipwzw

fix linter

parent 0990bcda
#!/usr/bin/env bash #!/usr/bin/env bash
guodun1="$(../chain33-cli config config_tx -k token-finisher -o del -v 13KDST7ndBmzunGYAkCRabooWGRc95hM3W --paraName "user.p.starsunny.")" guodun1=$(../chain33-cli config config_tx -k token-blacklist -o add -v BTY --paraName "user.p.$2.")
guodun2="$(../chain33-cli config config_tx -k token-finisher -o add -v 1AtQcjpDYaJSxvAE3aacfJUknsFNb7eWLd --paraName "user.p.starsunny.")" guodun2=$(../chain33-cli config config_tx -k token-finisher -o add -v "$1" --paraName "user.p.$2.")
echo "cli wallet sign -d $guodun1 -a 1JmFaA6unrCFYEWPGRi7uuXY1KthTJxJEP -e 1h > d:/b.txt" echo "cli wallet sign -d $guodun1 -a 1JmFaA6unrCFYEWPGRi7uuXY1KthTJxJEP -e 1h > d:/b.txt"
echo "cli wallet sign -d $guodun2 -a 1JmFaA6unrCFYEWPGRi7uuXY1KthTJxJEP -e 1h >> d:/b.txt" echo "cli wallet sign -d $guodun2 -a 1JmFaA6unrCFYEWPGRi7uuXY1KthTJxJEP -e 1h >> d:/b.txt"
...@@ -201,7 +201,7 @@ func (im *importPackageStrategy) generateImportFile() error { ...@@ -201,7 +201,7 @@ func (im *importPackageStrategy) generateImportFile() error {
importStrs := map[string]string{} importStrs := map[string]string{}
for name, plugins := range im.items { for name, plugins := range im.items {
for _, item := range plugins { for _, item := range plugins {
importStrs[name] += fmt.Sprintf("\r\n_ \"%s\"", item.gitRepo) importStrs[name] += fmt.Sprintf("\r\n_ \"%s\" //auto gen", item.gitRepo)
} }
} }
for key, value := range importStrs { for key, value := range importStrs {
......
...@@ -72,10 +72,10 @@ func buildInit(path string, packname string) { ...@@ -72,10 +72,10 @@ func buildInit(path string, packname string) {
var data = []byte(`package plugin var data = []byte(`package plugin
import ( import (
_ "${packname}/consensus/init" _ "${packname}/consensus/init" //consensus init
_ "${packname}/crypto/init" _ "${packname}/crypto/init" //crypto init
_ "${packname}/dapp/init" _ "${packname}/dapp/init" //dapp init
_ "${packname}/store/init" _ "${packname}/store/init //store init"
)`) )`)
data = bytes.Replace(data, []byte("${packname}"), []byte(packname), -1) data = bytes.Replace(data, []byte("${packname}"), []byte(packname), -1)
ioutil.WriteFile(path, data, 0666) ioutil.WriteFile(path, data, 0666)
......
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