rooch-network / rooch

VApp Container with Move Language
https://rooch.network
Apache License 2.0
128 stars 54 forks source link

Implement eth_getBalance #772

Closed YusongWang closed 7 months ago

YusongWang commented 8 months ago

Summary

vercel[bot] commented 8 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment | Name | Status | Preview | Comments | Updated (UTC) | | :--- | :----- | :------ | :------- | :------ | | **rooch** | ⬜️ Ignored ([Inspect](https://vercel.com/rooch/rooch/2HPVfAoW6nJA8uCfZE9jjr3nE7FM)) | [Visit Preview](https://rooch-git-fork-yusongwang-feat-ethbalance-rooch.vercel.app) | | Sep 20, 2023 2:21pm |
YusongWang commented 8 months ago

@jolestar I need some tips

Thanks.

Also, does someone else know this? PLS give me a brief

jolestar commented 8 months ago

@jolestar I need some tips

  • How to initialize the account with Genesis or other ways?
  • Also register eth address for the publickey or rooch address?

Thanks.

Also, does someone else know this? PLS give me a brief

Send a transaction via MetaMask and ETH RPC will auto-create an account and bind the EHTAddress. After the #735 is finished, the developer can send ETH transactions via CLI.

jolestar commented 8 months ago

Record an issue about the MetaMask document #773

jolestar commented 8 months ago

Hi, @YusongWang. Do you want to continue this PR?

YusongWang commented 8 months ago

Hi, @YusongWang. Do you want to continue this PR?

Yeah, but still working on fill up gas coin, not really working on the query part!

YusongWang commented 8 months ago

Hi @jolestar @baichuan3 @wow-sven @templexxx I post new work here.

the issue I have for now is when I send a tx in eth.

the contract call will fail and give a code I can't find where is and can't pass by any mock code.

thread 'tokio-runtime-worker' panicked at 'called `Result::unwrap()` on an `Err` value: status ABORTED of type Execution with sub status 66538', crates/rooch-rpc-server/src/service/mod.rs:58:14

Can you look at this?

wow-sven commented 8 months ago

Hi @jolestar @baichuan3 @wow-sven @templexxx I post new work here.

the issue I have for now is when I send a tx in eth.

the contract call will fail and give a code I can't find where is and can't pass by any mock code.

thread 'tokio-runtime-worker' panicked at 'called `Result::unwrap()` on an `Err` value: status ABORTED of type Execution with sub status 66538', crates/rooch-rpc-server/src/service/mod.rs:58:14

Can you look at this?

The suggested solution to this issue is to modify the gas of the transaction. By increasing the gas limit, it may provide enough resources for the transaction to complete successfully. You can find more details and discussion about this issue in the following link: rooch-network/rooch issue #842.

refer to https://github.com/rooch-network/rooch/blob/main/moveos/moveos-types/src/gas_config.rs

YusongWang commented 7 months ago

@jolestar I quit, I can't make any progress. sorry for that, and same to me.

jolestar commented 7 months ago

@jolestar I quit, I can't make any progress. sorry for that, and same to me.

It is ok, the system is complex and the documentation is not complete. Thank you for contributions.