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

API not support "hmy_estimateGas" #3

Open
Renewwen opened this issue Dec 12, 2019 · 2 comments
Open

API not support "hmy_estimateGas" #3

Renewwen opened this issue Dec 12, 2019 · 2 comments
Assignees

Comments

@Renewwen
Copy link
Contributor

No description provided.

@Renewwen Renewwen changed the title API not support "hmy" API not support "hmy_estimateGas" Dec 12, 2019
@Renewwen
Copy link
Contributor Author

According to IBriz team reported, they got an issue when they tried to call a function through webapp (harmony js SDK) through backend.

(base) ultimate@ultimate-Blade-15-Mid-2019-Base:~/Desktop/Faucet/faucet-backend$ npm start

> harmony-api@1.0.0 start /home/ultimate/Desktop/iBriz/Faucet/faucet-backend
> node server.js

body-parser` deprecated undefined extended: provide extended option server.js:8:20
Server listening on port 5000...
The method hmy_estimateGas does not exist/is not available

Actually, the function of "hmy_estimateGas" has implemented, see this: https://github.com/harmony-one/sdk/blob/4b7d95c429433d29f627e0156aaf8fc695bc05fe/packages/harmony-contract/src/methods/method.ts#L158

the problem is we don't have a function in core-protocol...I am going to fix that.

Expected behavior
After calling hmy_estimateGas, it should work.

@Renewwen Renewwen self-assigned this Dec 12, 2019
@neeboo
Copy link

neeboo commented Dec 17, 2019

The sdk is aiming to support. However the blockchain rpc is not. To work around this problem, please use specify gasLimit and gasPrice amount manually.

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

2 participants