Commit 3436c30f authored by vipwzw's avatar vipwzw Committed by 33cn

auto ci

parent 2dc66974
......@@ -21,7 +21,7 @@ var (
alog = log.New("module", "execs.autonomy")
driverName = auty.AutonomyX
autonomyFundAddr = address.ExecAddress("autonomyfund")
cfg subConfig
cfg subConfig
)
func init() {
......
......@@ -339,7 +339,7 @@ func (a *action) getTotalVotes(height int64) (int32, error) {
if cfg.Total != "" {
addr = cfg.Total
}
account, err := a.getStartHeightVoteAccount(addr, "", height)
account, err := a.getStartHeightVoteAccount(addr, "", height)
if err != nil {
return 0, err
}
......@@ -373,7 +373,7 @@ func (a *action) getStartHeightVoteAccount(addr, execer string, height int64) (*
account, err := a.coinsAccount.GetBalance(a.api, &types.ReqBalance{
Addresses: []string{addr},
Execer: execer,
Execer: execer,
StateHash: stateHash,
})
if err != nil || len(account) == 0 {
......
......@@ -264,7 +264,7 @@ func voteProposalBoard(t *testing.T, env *ExecEnv, exec drivers.Driver, stateDB
acc = &types.Account{
Currency: 0,
Frozen: total,
Frozen: total,
}
val1 := types.Encode(acc)
values1 := [][]byte{val1}
......@@ -321,7 +321,7 @@ func voteProposalBoard(t *testing.T, env *ExecEnv, exec drivers.Driver, stateDB
// 每次需要重新设置
acc := &types.Account{
Currency: 0,
Frozen: total,
Frozen: total,
}
val := types.Encode(acc)
values := [][]byte{val}
......
......@@ -307,7 +307,7 @@ func voteProposalProject(t *testing.T, env *ExecEnv, exec drivers.Driver, stateD
acc = &types.Account{
Currency: 0,
Frozen: total,
Frozen: total,
}
val1 := types.Encode(acc)
values1 := [][]byte{val1}
......@@ -364,7 +364,7 @@ func voteProposalProject(t *testing.T, env *ExecEnv, exec drivers.Driver, stateD
// 每次需要重新设置
acc := &types.Account{
Currency: 0,
Frozen: total,
Frozen: total,
}
val := types.Encode(acc)
values := [][]byte{val}
......@@ -421,7 +421,7 @@ func pubVoteProposalProject(t *testing.T, env *ExecEnv, exec drivers.Driver, sta
acc = &types.Account{
Currency: 0,
Frozen: total,
Frozen: total,
}
val1 := types.Encode(acc)
values1 := [][]byte{val1}
......@@ -478,7 +478,7 @@ func pubVoteProposalProject(t *testing.T, env *ExecEnv, exec drivers.Driver, sta
// 每次需要重新设置
acc := &types.Account{
Currency: 0,
Frozen: total,
Frozen: total,
}
val := types.Encode(acc)
values := [][]byte{val}
......
......@@ -204,7 +204,7 @@ func voteProposalRule(t *testing.T, env *ExecEnv, exec drivers.Driver, stateDB d
acc = &types.Account{
Currency: 0,
Frozen: total,
Frozen: total,
}
val1 := types.Encode(acc)
values1 := [][]byte{val1}
......@@ -261,7 +261,7 @@ func voteProposalRule(t *testing.T, env *ExecEnv, exec drivers.Driver, stateDB d
// 每次需要重新设置
acc := &types.Account{
Currency: 0,
Frozen: total,
Frozen: total,
}
val := types.Encode(acc)
values := [][]byte{val}
......
......@@ -94,5 +94,5 @@ var (
AutonomyX = "autonomy"
ExecerAutonomy = []byte(AutonomyX)
// TicketX 该模块需要查询ticket合约下的账户余额
TicketX = "ticket"
TicketX = "ticket"
)
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