blocto / solana-go-sdk

Solana Golang SDK
https://blocto.github.io/solana-go-sdk/
MIT License
385 stars 101 forks source link

type of TransactionCount in get_epoch_info is *uint64 #48

Closed liuyangc3 closed 2 years ago

liuyangc3 commented 2 years ago

Why use *uint64 instead of uint64?

yihau commented 2 years ago

json rpc docs says

transactionCount: <u64 | null>, total number of transactions processed without error since genesis

https://docs.solana.com/developing/clients/jsonrpc-api#getepochinfo

and code

https://github.com/solana-labs/solana/blob/master/rpc/src/rpc.rs#L2484 https://github.com/solana-labs/solana/blob/master/sdk/src/epoch_info.rs#L22

I think it is a option value so I make it nullable

liuyangc3 commented 2 years ago

json rpc docs says

transactionCount: <u64 | null>, total number of transactions processed without error since genesis

https://docs.solana.com/developing/clients/jsonrpc-api#getepochinfo

and code

https://github.com/solana-labs/solana/blob/master/rpc/src/rpc.rs#L2484 https://github.com/solana-labs/solana/blob/master/sdk/src/epoch_info.rs#L22

I think it is a option value so I make it nullable

Thank you