-
Notifications
You must be signed in to change notification settings - Fork 30
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
Utilize gas estimation in client libraries #173
Utilize gas estimation in client libraries #173
Conversation
9d98834
to
237fa96
Compare
Hmm, looks like Truffle integration gas estimates are off.
|
237fa96
to
04c94cf
Compare
04c94cf
to
a9fcd7a
Compare
@aefhm Lets remove Truffle support, that will unblock this :D https://consensys.io/blog/consensys-announces-the-sunset-of-truffle-and-ganache-and-new-hardhat
|
I'm game. Will remove Truffle in a separate PR/issue and inform the community. |
Relates to oasisprotocol/docs#547 |
Is gas estimation possible, if we don't sign the gas estimation call? Most of estimates will be off, if the contract checks msg.sender credentials. |
a9fcd7a
to
344db32
Compare
1 similar comment
344db32
to
23f44a0
Compare
23f44a0
to
2e3bf3e
Compare
ee9bd1e
to
cb2cead
Compare
2e3bf3e
to
85baf43
Compare
85baf43
to
7161b42
Compare
7161b42
to
3af70fd
Compare
I believe so. I tried testing with some require(
msg.sender == _metas[index].creator,
"only for creator"
);
Could you elaborate? 🤔 |
Gas estimation is possible without signed queries, it's just So if the code relies on signed queries, gas estimation will be wrong. If the code doesn't rely on signed queries, then gas estimation will be OK. |
👍
Wrong in the safe way though? #39 (comment)
👌 I believe we are ~okay turning gas estimation on with this caveat? |
…U-86785j9hu_Dont-return-hard-coded-gas-estimation-in-Sapphire-Client-Library_Xi-Zhang Utilize gas estimation in client libraries 9ccaf13
…-86785j9hu_Dont-return-hard-coded-gas-estimation-in-Sapphire-Client-Library_Xi-Zhang Utilize gas estimation in client libraries 9ccaf13
Why
Relates to #39
Development
Go
This appears fairly straight forward. I can test with a base Go script against our Vigil contract.
JS
I'm testing with Vigil.sol and run-vigil.ts
TODO