Add WasmTendermintConfig
struct implementing ClientConfig
interface
#4048
Labels
08-wasm
testing
Testing package and unit/integration tests
type: refactor
Architecture, code or CI improvements that may or may not tackle technical debt.
Milestone
Thank you @damiannolan for this suggestion.
In order to be able to write tests with the Tendermint wasm light client, a change in the testing package was made to specify where the light client is a regular Tendermint light client or a Tendermint wasm light client. A bool parameter was added to
NewTendermintConfig
to indicate this.As proposed by @damiannolan, instead of using a bool to add behaviour to an existing type, add a new type (as that is what the
ClientConfig
interface is intended for):UseWasmClient
bool fromTestChain
, and setterSetWasm(bool)
.CodeID
field being added to theCoordinator
type can be moved to theWasmTendermintConfig
type as a new field. Add a newClientConfig
implementation to satisfy the interface:WithClientConfig
method to the testing Endpoint:The text was updated successfully, but these errors were encountered: