github.com/okex/exchain@v1.8.0/libs/tendermint/types/to.go (about) 1 package types 2 3 func (b Block) To() CM40Block { 4 ret := CM40Block{} 5 return ret.From(b) 6 } 7 func (c Commit) To() IBCCommit { 8 ret := IBCCommit{} 9 return ret.From(c) 10 }