Delete the custom libs/json (tmjson) package. (#7673)

There are no further uses of this package anywhere in Tendermint.
All the uses in the Cosmos SDK are for types that now work correctly with the
standard encoding/json package.
This commit is contained in:
M. J. Fromberger
2022-01-24 08:15:34 -08:00
committed by GitHub
parent f6ebd84ee2
commit 7878ca6a8a
20 changed files with 104 additions and 1216 deletions

View File

@@ -8,12 +8,12 @@
package main
import (
"encoding/json"
"fmt"
"io"
"os"
"github.com/tendermint/tendermint/internal/consensus"
tmjson "github.com/tendermint/tendermint/libs/json"
)
func main() {
@@ -37,7 +37,7 @@ func main() {
panic(fmt.Errorf("failed to decode msg: %w", err))
}
json, err := tmjson.Marshal(msg)
json, err := json.Marshal(msg)
if err != nil {
panic(fmt.Errorf("failed to marshal msg: %w", err))
}