Fix SuiSystemState type err
This commit is contained in:
@@ -12,7 +12,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
var ctx = context.Background()
|
var ctx = context.Background()
|
||||||
var cli = sui.NewSuiClient(constant.BvMainnetEndpoint)
|
var cli = sui.NewSuiClient(constant.BvTestnetEndpoint)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
//SuiGetTotalTransactionBlocks()
|
//SuiGetTotalTransactionBlocks()
|
||||||
@@ -143,7 +143,7 @@ func SuiGetTotalTransactionBlocks() {
|
|||||||
|
|
||||||
func SuiGetTransactionBlock() {
|
func SuiGetTransactionBlock() {
|
||||||
rsp, err := cli.SuiGetTransactionBlock(ctx, models.SuiGetTransactionBlockRequest{
|
rsp, err := cli.SuiGetTransactionBlock(ctx, models.SuiGetTransactionBlockRequest{
|
||||||
Digest: "AhZYEiFFQtv5i1nLaURHiyvQNiyUBzNCHodnKFxgc2Lf",
|
Digest: "DjubVWzkndWDTzcWVd6g3xbQsfG3H2Gt7vMfrm1YjLNJ",
|
||||||
Options: models.SuiTransactionBlockOptions{
|
Options: models.SuiTransactionBlockOptions{
|
||||||
ShowInput: true,
|
ShowInput: true,
|
||||||
ShowRawInput: true,
|
ShowRawInput: true,
|
||||||
|
|||||||
@@ -189,7 +189,7 @@ type SuiSystemStateSummary struct {
|
|||||||
InactivePoolsSize string `json:"inactivePoolsSize"`
|
InactivePoolsSize string `json:"inactivePoolsSize"`
|
||||||
ValidatorCandidatesId string `json:"validatorCandidatesId"`
|
ValidatorCandidatesId string `json:"validatorCandidatesId"`
|
||||||
ValidatorCandidatesSize string `json:"validatorCandidatesSize"`
|
ValidatorCandidatesSize string `json:"validatorCandidatesSize"`
|
||||||
AtRiskValidators []string `json:"atRiskValidators"`
|
AtRiskValidators []interface{} `json:"atRiskValidators"`
|
||||||
ValidatorReportRecords [][]interface{} `json:"validatorReportRecords"`
|
ValidatorReportRecords [][]interface{} `json:"validatorReportRecords"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user