Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to implement sign transaction functionality? #54

Open
ghost opened this issue Dec 14, 2021 · 5 comments
Open

how to implement sign transaction functionality? #54

ghost opened this issue Dec 14, 2021 · 5 comments

Comments

@ghost
Copy link

ghost commented Dec 14, 2021

No description provided.

@Crysis21
Copy link

figure it out? callback doesn't fire

@Serpivskyi
Copy link

Any updates?

@Abhi9454
Copy link

Abhi9454 commented Feb 1, 2022

Check out signMessage in android

@xiejingwen
Copy link

ExampleApplication.session.performMethodCall(Session.MethodCall.Custom(System.currentTimeMillis(),"personal_sign",
arrayListOf("test sign",session.approvedAccounts()!!.first())), ::handleResponse)
val i = Intent(Intent.ACTION_VIEW)
i.data = Uri.parse("wc:")
startActivity(i)

@jiaweio
Copy link

jiaweio commented Jun 22, 2022

ExampleApplication.session.performMethodCall(Session.MethodCall.Custom(System.currentTimeMillis(),"personal_sign", arrayListOf("test sign",session.approvedAccounts()!!.first())), ::handleResponse) val i = Intent(Intent.ACTION_VIEW) i.data = Uri.parse("wc:") startActivity(i)

I get no response with this method,This is the code I wrote

val from = ExampleApplication.session.approvedAccounts()?.first()
?: return
Log.i(TAG, "---click-->$from")
ExampleApplication.session.performMethodCall(
Session.MethodCall.Custom(
System.currentTimeMillis(),
"personal_sign",
arrayListOf(
"0xdeadbeaf",
from
)
)
) { response ->
Log.d(TAG, "------>${response.result}--->${response.error}")

    }

No response at all

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants