You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The idea here is to allow governance gated execution without voting in test.
Here is some implementation idea on go side:
// libosmosistesttube/main.go//export ForceExecuteGovProposalfuncForceExecuteGovProposal(envIduint64, path, proposalTypeUrl, base64ProposalBytesstring) *C.char {
env:=loadEnv(envId)
// get router govRouter:=govkeeper.Keeper.Router(*env.App.GovKeeper)
// unmarshal content from base64ProposalBytes and proposalTypeUrl// every proposal type implement `Content` interface// we might need to create a proposal type registry to fetch the correct type to unmarshal// but if you find a way to unmarshal without registry, that would be bettercontent=...err:=govRouter.GetRoute(path)(env.Ctx, content)
iferr {
returnencodeErrToResultBytes(result.ExecuteError, err)
}
returnencodeBytesResultBytes([]byte{})
}
The text was updated successfully, but these errors were encountered:
The idea here is to allow governance gated execution without voting in test.
Here is some implementation idea on go side:
The text was updated successfully, but these errors were encountered: