Commit e75a95c1 authored by pengjun's avatar pengjun Committed by vipwzw

#653 fix fmt

parent 33f0cc2d
......@@ -39,7 +39,7 @@ const (
ProposalPOLID = byte(0x05)
VoteID = byte(0x06)
HasVoteID = byte(0x07)
VoteSetMaj23ID = byte(0X08)
VoteSetMaj23ID = byte(0x08)
VoteSetBitsID = byte(0x09)
ProposalHeartbeatID = byte(0x0a)
ProposalBlockID = byte(0x0b)
......
......@@ -31,7 +31,7 @@ var (
func TestPokerbull(t *testing.T) {
types.SetTitleOnlyForTest("chain33")
total := int64(1000*types.Coin)
total := int64(1000 * types.Coin)
accountA := types.Account{
Balance: total,
Frozen: 0,
......@@ -63,7 +63,7 @@ func TestPokerbull(t *testing.T) {
// start game
p1 := &pkt.PBGameStart{
Value: 5*types.Coin,
Value: 5 * types.Coin,
PlayerNum: 2,
}
createTx, err := types.CallCreateTransaction(pkt.PokerBullX, "Start", p1)
......@@ -185,11 +185,11 @@ func TestPokerbull(t *testing.T) {
}
// query
res, err := exec.Query(pkt.FuncNameQueryGameByID, types.Encode(&pkt.QueryPBGameInfo{GameId:common.ToHex(gameID)}))
res, err := exec.Query(pkt.FuncNameQueryGameByID, types.Encode(&pkt.QueryPBGameInfo{GameId: common.ToHex(gameID)}))
assert.Nil(t, err)
assert.NotNil(t, res)
res, err = exec.Query(pkt.FuncNameQueryGameByAddr, types.Encode(&pkt.QueryPBGameInfo{Addr:string(Nodes[0])}))
res, err = exec.Query(pkt.FuncNameQueryGameByAddr, types.Encode(&pkt.QueryPBGameInfo{Addr: string(Nodes[0])}))
assert.Nil(t, err)
assert.NotNil(t, res)
......
......@@ -96,7 +96,7 @@ func testContinueRawTxCmd(t *testing.T, jrpc *jsonclient.JSONClient) error {
}
func testPlayRawTxCmd(t *testing.T, jrpc *jsonclient.JSONClient) error {
payload := &pty.PBGamePlay{GameId: "123", Round:1, Value:5, Address: []string{"a", "b"}}
payload := &pty.PBGamePlay{GameId: "123", Round: 1, Value: 5, Address: []string{"a", "b"}}
params := &rpctypes.CreateTxIn{
Execer: types.ExecName(pty.PokerBullX),
ActionName: pty.CreatePlayTx,
......
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