Skip to content

Commit

Permalink
Add check for duplicate keys in json files (trustwallet#17134)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
Iamdeadlyz and unanoc authored Jan 11, 2022
1 parent 08aa1cd commit acc98af
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
)

Expand Down
14 changes: 4 additions & 10 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand Down

0 comments on commit acc98af

Please sign in to comment.