Add check for duplicate keys in json files (#17134)

* Check for duplicate keys

* Update validators.go

* Update validators.go

* Update validators.go

* testing...

* Update validators.go

* printing...

* Update validators.go

* Forgot closing curly brace

* Remove duplicate key

Removed intentional duplicate description keys for 0xFd7B3A77848f1C2D67E05E54d78d174a0C850335 which was used for testing

* Update validators.go

* Update validators.go

* Update assets-go-libs

Co-authored-by: Daniil Lee <24758309+leedaniil@users.noreply.github.com>
This commit is contained in:
Ian E 2022-01-11 18:04:25 +08:00 committed by GitHub
parent 08aa1cdf6f
commit acc98af0fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 12 deletions

4
go.mod
View File

@ -4,8 +4,8 @@ go 1.17
require (
github.com/sirupsen/logrus v1.8.1
github.com/trustwallet/assets-go-libs v0.0.21
github.com/trustwallet/go-libs v0.2.21-0.20211217144209-59d4828f9793
github.com/trustwallet/assets-go-libs v0.0.22
github.com/trustwallet/go-libs v0.2.21
github.com/trustwallet/go-primitives v0.0.19
)

14
go.sum
View File

@ -40,16 +40,10 @@ github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81P
github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY=
github.com/subosito/gotenv v1.2.0 h1:Slr1R9HxAlEKefgq5jn9U+DnETlIUa6HfgEzj0g5d7s=
github.com/subosito/gotenv v1.2.0/go.mod h1:N0PQaV/YGNqwC0u51sEeR/aUtSLEXKX9iv69rRypqCw=
github.com/trustwallet/assets-go-libs v0.0.19 h1:Zn7su7wSrJLOHSeEoM+jz8smmIFsX+tAGI3FQ7rwwqQ=
github.com/trustwallet/assets-go-libs v0.0.19/go.mod h1:/il5tQtqP3uSDbyDTfP1OsL3kSIg+v6+QBRz3okXZpc=
github.com/trustwallet/assets-go-libs v0.0.20 h1:gsBbhXd8OMRjEWD/5UAY+h6itKlui6c3tv+8GYO7QwI=
github.com/trustwallet/assets-go-libs v0.0.20/go.mod h1:/il5tQtqP3uSDbyDTfP1OsL3kSIg+v6+QBRz3okXZpc=
github.com/trustwallet/assets-go-libs v0.0.21-0.20220108160642-caef06257f15 h1:Sl2w9DqZebjbUVXqfVVrpi85gy8lMao7rIqNkMOjCOE=
github.com/trustwallet/assets-go-libs v0.0.21-0.20220108160642-caef06257f15/go.mod h1:/il5tQtqP3uSDbyDTfP1OsL3kSIg+v6+QBRz3okXZpc=
github.com/trustwallet/assets-go-libs v0.0.21 h1:gJBPyjCNsbyKMUcayQCVT9+IU6//jQzTbq3lkUvTgho=
github.com/trustwallet/assets-go-libs v0.0.21/go.mod h1:/il5tQtqP3uSDbyDTfP1OsL3kSIg+v6+QBRz3okXZpc=
github.com/trustwallet/go-libs v0.2.21-0.20211217144209-59d4828f9793 h1:KFtyLpBPbMyUdeCth/Zcej/SSgAFIo6fxdS2eEPEg3I=
github.com/trustwallet/go-libs v0.2.21-0.20211217144209-59d4828f9793/go.mod h1:7QdAp1lcteKKI0DYqGoaO8KO4eTNYjGmg8vHy0YXkKc=
github.com/trustwallet/assets-go-libs v0.0.22 h1:Q5sd0TfumFx9nF1FPfXNwjWQ3GYr2NUFQeeMBS/NE/s=
github.com/trustwallet/assets-go-libs v0.0.22/go.mod h1:/il5tQtqP3uSDbyDTfP1OsL3kSIg+v6+QBRz3okXZpc=
github.com/trustwallet/go-libs v0.2.21 h1:7euPmlaAu4DwpKmny7/JJuCbY3FMWtlBxMvVGkgt2wM=
github.com/trustwallet/go-libs v0.2.21/go.mod h1:7QdAp1lcteKKI0DYqGoaO8KO4eTNYjGmg8vHy0YXkKc=
github.com/trustwallet/go-primitives v0.0.19 h1:IvuzU1tB5u+UpjPkJqPqVvb8axLj1LI5nQmTvhmNIck=
github.com/trustwallet/go-primitives v0.0.19/go.mod h1:jLqd7rm+4EYG5JdpxhngM9HwbqfEXzKy/wK4vUB7STs=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=