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
+3 -3
View File
@@ -1,6 +1,7 @@
package mbt
import (
"encoding/json"
"os"
"path/filepath"
"testing"
@@ -8,7 +9,6 @@ import (
"github.com/stretchr/testify/require"
tmjson "github.com/tendermint/tendermint/libs/json"
"github.com/tendermint/tendermint/light"
"github.com/tendermint/tendermint/types"
)
@@ -28,7 +28,7 @@ func TestVerify(t *testing.T) {
}
var tc testCase
err = tmjson.Unmarshal(jsonBlob, &tc)
err = json.Unmarshal(jsonBlob, &tc)
if err != nil {
t.Fatal(err)
}
@@ -103,7 +103,7 @@ type testCase struct {
type initialData struct {
SignedHeader types.SignedHeader `json:"signed_header"`
NextValidatorSet types.ValidatorSet `json:"next_validator_set"`
TrustingPeriod uint64 `json:"trusting_period"`
TrustingPeriod uint64 `json:"trusting_period,string"`
Now time.Time `json:"now"`
}