Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
swap-v2-sdk
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
LuckySwap
swap-v2-sdk
Commits
cee5ae9b
Unverified
Commit
cee5ae9b
authored
Feb 21, 2020
by
Noah Zinsmeister
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix init code hash for factory deploy
parent
81c1c41f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
constants.ts
src/constants.ts
+1
-1
data.test.ts
test/data.test.ts
+1
-1
No files found.
src/constants.ts
View file @
cee5ae9b
...
@@ -17,7 +17,7 @@ export const FACTORY_ADDRESS = {
...
@@ -17,7 +17,7 @@ export const FACTORY_ADDRESS = {
[
ChainId
.
KOVAN
]:
''
[
ChainId
.
KOVAN
]:
''
}
}
export
const
INIT_CODE_HASH
=
'
0x
a447d0eea6a2235380af6f64c8be6e6c410241c4ade4dfaa99cebfde475ed036
'
export
const
INIT_CODE_HASH
=
'
0x
ebe7ae2e909b82f0a14f5a09eb291778942ae66818008d407a7b67aa17be7052
'
export
enum
TradeType
{
export
enum
TradeType
{
EXACT_INPUT
,
EXACT_INPUT
,
...
...
test/data.test.ts
View file @
cee5ae9b
...
@@ -14,6 +14,6 @@ describe('data', () => {
...
@@ -14,6 +14,6 @@ describe('data', () => {
it
(
'
Exchange
'
,
async
()
=>
{
it
(
'
Exchange
'
,
async
()
=>
{
const
token
=
new
Token
(
ChainId
.
RINKEBY
,
'
0xc7AD46e0b8a400Bb3C915120d284AafbA8fc4735
'
,
18
)
// DAI
const
token
=
new
Token
(
ChainId
.
RINKEBY
,
'
0xc7AD46e0b8a400Bb3C915120d284AafbA8fc4735
'
,
18
)
// DAI
const
exchange
=
await
Exchange
.
fetchData
(
WETH
[
ChainId
.
RINKEBY
],
token
)
const
exchange
=
await
Exchange
.
fetchData
(
WETH
[
ChainId
.
RINKEBY
],
token
)
expect
(
exchange
.
address
).
toEqual
(
'
0xC
bDc281884F23dE2c829960b112F946329434678
'
)
expect
(
exchange
.
address
).
toEqual
(
'
0xC
0568fA2FC63123B7352c506076DFa5623D62Db5
'
)
})
})
})
})
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment