File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ func (m Mnemonic) _Indices() ([]int, error) {
131131 var check bool
132132 temp := strings .Split (m .words , " " )
133133 if len (temp ) == 22 { // nolint
134- for _ , mnemonicString := range strings .Split (m .words , " " ) {
134+ for mnemonicString := range strings .SplitSeq (m .words , " " ) {
135135 check = false
136136 for i , stringCheck := range legacy {
137137 if mnemonicString == stringCheck {
@@ -144,7 +144,7 @@ func (m Mnemonic) _Indices() ([]int, error) {
144144 }
145145 }
146146 } else if len (temp ) == 24 {
147- for _ , mnemonicString := range strings .Split (m .words , " " ) {
147+ for mnemonicString := range strings .SplitSeq (m .words , " " ) {
148148 t , check := GetWordIndex (mnemonicString )
149149 if ! check {
150150 return make ([]int , 0 ), ErrInvalidMnemonic
You can’t perform that action at this time.
0 commit comments