BuildOnViction / tomox-sdk

SDK to build a Decentralized Exchange on TomoX protocol
MIT License
36 stars 18 forks source link

insert tokens duplicated #124

Closed thanhson1085 closed 4 years ago

thanhson1085 commented 4 years ago
214|tomox-sdk  | DEBU 11:24:02 at relayer/relayerengine.go:249 in GetLendingRelayer():lending relayer data:  [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 100 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 128 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 96 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 64 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 6 0 0 0 0 0 0 0 0 0 0 0 0 69 194 80 65 184 230 203 213 201 99 231 148 48 7 24 124 54 115 199 201 0 0 0 0 0 0 0 0 0 0 0 0 69 194 80 65 184 230 203 213 201 99 231 148 48 7 24 124 54 115 199 201 0 0 0 0 0 0 0 0 0 0 0 0 69 194 80 65 184 230 203 213 201 99 231 148 48 7 24 124 54 115 199 201 0 0 0 0 0 0 0 0 0 0 0 0 69 194 80 65 184 230 203 213 201 99 231 148 48 7 24 124 54 115 199 201 0 0 0 0 0 0 0 0 0 0 0 0 69 194 80 65 184 230 203 213 201 99 231 148 48 7 24 124 54 115 199 201 0 0 0 0 0 0 0 0 0 0 0 0 69 194 80 65 184 230 203 213 201 99 231 148 48 7 24 124 54 115 199 201 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 6 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 60 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 60 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 81 128 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 81 128 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 9 58 128 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 39 141 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 6 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 93 194 125 89 187 128 224 239 133 59 178 226 123 148 17 61 240 143 84 127 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 93 194 125 89 187 128 224 239 133 59 178 226 123 148 17 61 240 143 84 127 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]
214|tomox-sdk  | ERRO 11:24:02 at daos/token.go:77 in Create():E11000 duplicate key error collection: tomodex.lending_tokens index: contractAddress_1 dup key: { contractAddress: "0x45c25041b8e6CBD5c963E7943007187C3673C7c9" }
214|tomox-sdk  | ERRO 11:24:02 at services/relayer.go:269 in updateLendingTokenRelayer():E11000 duplicate key error collection: tomodex.lending_tokens index: contractAddress_1 dup key: { contractAddress: "0x45c25041b8e6CBD5c963E7943007187C3673C7c9" }
thanhson1085 commented 4 years ago

Fixed https://github.com/tomochain/tomox-sdk/commit/eaf9219b0f30639762365ed786e1466232b22772