MCPcopy Create free account
hub / github.com/akash-network/node / ClientContext

Method ClientContext

testutil/network_suite.go:222–231  ·  view source on GitHub ↗
(idxT ...int)

Source from the content-addressed store, hash-verified

220}
221
222func (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
233func (nts *NetworkTestSuite) Config() network.Config {
234 return nts.cfg

Callers 2

SetupSuiteMethod · 0.95
ClientContextForTestMethod · 0.95

Calls 1

ValidatorMethod · 0.95

Tested by

no test coverage detected