(idxT ...int)
| 220 | } |
| 221 | |
| 222 | func (nts *NetworkTestSuite) ClientContext(idxT ...int) sdkclient.Context { |
| 223 | validator := nts.Validator() |
| 224 | idx := 0 |
| 225 | if len(idxT) != 0 { |
| 226 | idx = idxT[0] |
| 227 | } |
| 228 | result := validator.ClientCtx |
| 229 | |
| 230 | return result.WithFromAddress(validator.Address).WithFromName(fmt.Sprintf("node%d", idx)) |
| 231 | } |
| 232 | |
| 233 | func (nts *NetworkTestSuite) Config() network.Config { |
| 234 | return nts.cfg |
no test coverage detected