mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-21 07:24:36 +00:00
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:
@@ -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"`
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user