Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
offshiftXFT
offshift-contracts-public
Commits
062b239f
Commit
062b239f
authored
2 years ago
by
XFT
Browse files
Options
Download
Email Patches
Plain Diff
padding fix
parent
074a5657
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
test/XFTanon.mainnet.test.js
test/XFTanon.mainnet.test.js
+1
-1
No files found.
test/XFTanon.mainnet.test.js
View file @
062b239f
...
...
@@ -161,7 +161,7 @@ contract('XFTShifter', (accounts) => {
throw
new
Error
(
"
The data provided couldn't be encrypted or decrypted, please check the inputs
"
);
}
}
encryptNote
=
async
(
deposit
,
key
)
=>
await
xcrypt
(
`0x
${
deposit
.
nullifier
.
toString
(
16
).
pad
End
(
62
,
'
0
'
)}${
deposit
.
secret
.
toString
(
16
).
pad
End
(
62
,
'
0
'
)}
`
,
key
);
encryptNote
=
async
(
deposit
,
key
)
=>
await
xcrypt
(
`0x
${
deposit
.
nullifier
.
toString
(
16
).
pad
Start
(
62
,
'
0
'
)}${
deposit
.
secret
.
toString
(
16
).
pad
Start
(
62
,
'
0
'
)}
`
,
key
);
xft
=
await
XFT
.
at
(
allShifters
[
'
XFT
'
].
contract
)
token
=
await
Token
.
at
(
allShifters
[
'
anonUSD500
'
].
contract
)
tokenETH
=
await
Token
.
at
(
allShifters
[
'
anonETH1
'
].
contract
)
...
...
This diff is collapsed.
Click to expand it.
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