Fixing problem, not showing genesis transaction correctly
@@ -31,7 +31,7 @@ type ClientV3 struct {
func NewClientV3(endpoint string) *ClientV3 {
return &ClientV3{JsonRpcClient: NewJsonRpcClient(&http.Client{}, endpoint),
- conns: make(map[string]*websocket.Conn),}
+ conns: make(map[string]*websocket.Conn)}
}
//refer block/blockv2.go blockv2.ToJSON
@@ -44,7 +44,7 @@ type Block struct {
PrevID jsonrpc.HexBytes `json:"prev_block_hash" validate:"required,t_hash"`
NormalTransactionsHash jsonrpc.HexBytes `json:"merkle_tree_root_hash" validate:"required,t_hash"`
Signature jsonrpc.HexBytes `json:"signature" validate:"optional,t_hash"`
- NormalTransations []NormalTransaction `json:"confirmed_transaction_list" `
+ NormalTransactions []json.RawMessage `json:"confirmed_transaction_list" `
}
//refer service/transaction/transaction_v3.go:24 transactionV3Data, transactionV3.ToJSON
