komputing / KEthereum

Kotlin library for Ethereum
MIT License
344 stars 72 forks source link

Add eth_accounts and eth_sign RPC methods #149

Closed krisbitney closed 1 year ago

krisbitney commented 1 year ago

Feel free to request changes if desired!

krisbitney commented 1 year ago

@ligi I made several bug fixes to make sure these work. They are further tested using a local Ganache node. You can view the tests in this PR for one of our repos:

https://github.com/polywrap/ethereum-wallet/blob/f32492e1da3d00a3f64efe098ae5f3f544c1af8d/implementations/kt/src/test/kotlin/io/polywrap/plugins/ethereum/EthereumWalletPluginTest.kt

https://github.com/polywrap/ethereum-wallet/blob/f32492e1da3d00a3f64efe098ae5f3f544c1af8d/implementations/kt/src/test/kotlin/io/polywrap/plugins/ethereum/EthereumWalletPluginTest.kt#L98

Please do feel free to request changes if something doesn't look right.