File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -587,8 +587,8 @@ func (c *Chain) parseAddressPrefix() (string, error) {
587587 }
588588
589589 // try to find the AccountAddressPrefix constant
590- lines := strings .Split (string (content ), "\n " )
591- for _ , line := range lines {
590+ lines := strings .SplitSeq (string (content ), "\n " )
591+ for line := range lines {
592592 // match both formats:
593593 // AccountAddressPrefix = "cosmos"
594594 // AccountAddressPrefix string = "cosmos"
@@ -631,8 +631,8 @@ func (c *Chain) parseCoinType() (uint32, error) {
631631 }
632632
633633 // try to find the ChainCoinType constant
634- lines := strings .Split (string (content ), "\n " )
635- for _ , line := range lines {
634+ lines := strings .SplitSeq (string (content ), "\n " )
635+ for line := range lines {
636636 if strings .Contains (line , "ChainCoinType" ) && strings .Contains (line , "=" ) {
637637 parts := strings .Split (line , "=" )
638638 if len (parts ) < 2 {
You can’t perform that action at this time.
0 commit comments