File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
script/crypto-assets-importer Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -38,23 +38,23 @@ module.exports = {
38
38
const abis = addresses . reduce (
39
39
( acc , address , i ) => ( {
40
40
...acc ,
41
- [ address ] : abisList [ i ] ,
41
+ [ address . toLowerCase ( ) ] : abisList [ i ] ,
42
42
} ) ,
43
43
{ }
44
44
) ;
45
45
46
46
return bare . contracts . reduce (
47
47
( acc , contract ) => ( {
48
48
...acc ,
49
- [ contract . address ] : {
49
+ [ contract . address . toLowerCase ( ) ] : {
50
50
...mapObject ( contract . selectors , ( [ selector , data ] ) => [
51
51
selector ,
52
52
{
53
- ...( signatures [ contract . address ] [ selector ] || { } ) ,
53
+ ...( signatures [ contract . address . toLowerCase ( ) ] [ selector ] || { } ) ,
54
54
erc20OfInterest : data . erc20OfInterest ,
55
55
} ,
56
56
] ) ,
57
- abi : abis [ contract . address ] ,
57
+ abi : abis [ contract . address . toLowerCase ( ) ] ,
58
58
} ,
59
59
} ) ,
60
60
{ }
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ const fs = require("fs");
3
3
const path = require ( "path" ) ;
4
4
5
5
const importers = [
6
- require ( "./importers/ethereum-dapps " ) ,
6
+ require ( "./importers/ethereum-plugins " ) ,
7
7
require ( "./importers/erc20-signatures" ) ,
8
8
require ( "./importers/erc20full" ) ,
9
9
require ( "./importers/erc20exchange" ) ,
You can’t perform that action at this time.
0 commit comments