Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
parity
Mirrored projects
parity-signer
Commits
ceeed812
Unverified
Commit
ceeed812
authored
Apr 14, 2020
by
Joseph Mark
Committed by
GitHub
Apr 14, 2020
Browse files
Fix syntax (#592)
parent
b5410205
Pipeline
#87736
failed with stages
in 4 minutes and 23 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
android/app/src/main/java/io/parity/signer/EthkeyBridge.java
View file @
ceeed812
...
...
@@ -221,7 +221,7 @@ public class EthkeyBridge extends ReactContextBaseJavaModule {
@ReactMethod
public
void
substrateAddressWithRef
(
double
seedRef
,
String
suriSuffix
,
int
prefix
,
Promise
promise
)
{
try
{
String
substrateAddress
=
ethkeySubstrateWalletAddressWithRef
(
Double
.
doubleToRawLongBits
(
seedRef
),
suriSuffix
,
prefix
)
)
;
String
substrateAddress
=
ethkeySubstrateWalletAddressWithRef
(
Double
.
doubleToRawLongBits
(
seedRef
),
suriSuffix
,
prefix
);
promise
.
resolve
(
substrateAddress
);
}
catch
(
Exception
e
)
{
promise
.
reject
(
"invalid suri suffix or prefix"
,
"invalid suri suffix or prefix"
);
...
...
@@ -247,7 +247,7 @@ public class EthkeyBridge extends ReactContextBaseJavaModule {
private
static
native
long
ethkeyDecryptDataRef
(
String
data
,
String
password
);
private
static
native
void
ethkeyDestroyDataRef
(
long
data_ref
);
private
static
native
String
ethkeyBrainwalletSignWithRef
(
long
seed_ref
,
String
message
);
private
static
native
String
ethkeySubstrateBrainwalletSignWithRef
(
long
seed_ref
,
String
suriSuffix
,
String
message
)
private
static
native
String
ethkeySubstrateBrainwalletSignWithRef
(
long
seed_ref
,
String
suriSuffix
,
String
message
)
;
private
static
native
String
ethkeySubstrateWalletAddressWithRef
(
long
seedRef
,
String
suriSuffix
,
int
prefix
);
private
static
native
String
ethkeyBrainWalletAddressWithRef
(
long
seedRef
);
}
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