Skip to content

Commit

Permalink
Update types/chain_id.go
Browse files Browse the repository at this point in the history
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
yihuang and coderabbitai[bot] authored Oct 25, 2023
1 parent d52f3b6 commit 1ad9a8f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions types/chain_id.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ const ChainIDFieldName = "chain_id"
// it still parses the values before the `chain_id` field, particularly if the `app_state` field is
// before the `chain_id` field, it will parse the `app_state` value, user must make sure the `chain_id`
// is put before `app_state` or other big entries to enjoy the efficiency.
// If the `chain_id` field is not found, the function will return an error.
func ParseChainIDFromGenesis(r io.Reader) (string, error) {
func ParseChainIDFromGenesis(r io.Reader) (string, error) {

Check failure on line 21 in types/chain_id.go

View workflow job for this annotation

GitHub Actions / dependency-review

expected '(', found ParseChainIDFromGenesis

Check failure on line 21 in types/chain_id.go

View workflow job for this annotation

GitHub Actions / dependency-review

expected ')', found io

Check failure on line 21 in types/chain_id.go

View workflow job for this annotation

GitHub Actions / dependency-review

missing ',' in parameter list

Check failure on line 21 in types/chain_id.go

View workflow job for this annotation

GitHub Actions / dependency-review

r (variable of type "io".Reader) is not a type

Check failure on line 21 in types/chain_id.go

View workflow job for this annotation

GitHub Actions / dependency-review

undefined: Reader

Check failure on line 21 in types/chain_id.go

View workflow job for this annotation

GitHub Actions / tests (03)

syntax error: unexpected ParseChainIDFromGenesis, expected (

Check failure on line 21 in types/chain_id.go

View workflow job for this annotation

GitHub Actions / tests (00)

syntax error: unexpected ParseChainIDFromGenesis, expected (

Check failure on line 21 in types/chain_id.go

View workflow job for this annotation

GitHub Actions / tests (00)

syntax error: unexpected ParseChainIDFromGenesis, expected (

Check failure on line 21 in types/chain_id.go

View workflow job for this annotation

GitHub Actions / tests (00)

syntax error: unexpected ParseChainIDFromGenesis, expected (

Check failure on line 21 in types/chain_id.go

View workflow job for this annotation

GitHub Actions / tests (02)

syntax error: unexpected ParseChainIDFromGenesis, expected (

Check failure on line 21 in types/chain_id.go

View workflow job for this annotation

GitHub Actions / tests (02)

syntax error: unexpected ParseChainIDFromGenesis, expected (

Check failure on line 21 in types/chain_id.go

View workflow job for this annotation

GitHub Actions / tests (01)

syntax error: unexpected ParseChainIDFromGenesis, expected (
dec := json.NewDecoder(r)

Expand Down

0 comments on commit 1ad9a8f

Please sign in to comment.