Git Product home page Git Product logo

Comments (5)

jiguantong avatar jiguantong commented on September 26, 2024

Estimate gas @fewensa

from darwinia.

boundless-forest avatar boundless-forest commented on September 26, 2024
debug:   2023-10-23T04:34:01Z | [ormpipe-relay] [      ethers:crab      ] [ sendRpcPayload ] [{"method":"eth_chainId","params":[],"id":2,"jsonrpc":"2.0"},{"method":"eth_estimateGas","params":[{"from":"0x0b001c95e86d64c1ad6e43944c568a6c31b53887","to":"0x007eed6207c9af3715964fb7f8b5f44e002a3498","data":"0xa59216fa0000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000034607daf9c1dc6628f6e09e81bb232b6603a8900000000000000000000000000000000000000000000000000000000000000070000000000000000000000000000000000000000000000000000000000066eee0000000000000000000000000b001c95e86d64c1ad6e43944c568a6c31b53887000000000000000000000000000000000000000000000000000000000000002c0000000000000000000000000b001c95e86d64c1ad6e43944c568a6c31b5388700000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000000825893339390090620000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000440000000000000000000000000000000000000000000000000000000000009dd5f00000000000000000000000000000000000000000000000000000000000000076a0464e04da895b25eb1252a30ea5bfadfb524d5433f38e84882a90bc4cb8646e6028750d11bb2dc9dd5e8e16b416c247518f6567b6cfa1a607dbbd143ea60e5e3095ba90d7b5082d9522b0a1a5815b3b72ffaab95dc98a2f18b2a3e8cee23cdcfd9c35b1a3e4186c0cdccc3dab236b3551da9f79afe807105bba429a5f3b20fe58769b32a1beaf1ea27375a44095a0d1fb664ce2dd358e7fcbfb78c26a193440eb01ebfc9ed27500cd4dfc979272d1f0913cc9f66540d7e8005811109e1cf2d887c22bd8750d34016ac3c66b5ff102dacdd73f6b014e710b51e8022af9a1968ffd70157e48063fc33c97a050f7f640233bf646cc98d9524c6b92bcf3ab56f839867cc5f7f196b93bae1e27e6320742445d290f2263827498b54fec539f756afcefad4e508c098b9a7e1d8feb19955fb02ba9675585078710969d3440f5054e0f9dc3e7fe016e050eff260334f18a5d4fe391d82092319f5964f2e2eb7c1c3a5f8b13a49e282f609c317a833fb8d976d11517c571d1221a265d25af778ecf8923490c6ceeb450aecdc82e28293031d10c7d73bf85e57bf041a97360aa2c5d99cc1df82d9c4b87413eae2ef048f94b4d3554cea73d92b0f7af96e0271c691e2bb5c67add7c6caf302256adedf7ab114da0acfe870d449a3a489f781d659e8beccda7bce9f4e8618b6bd2f4132ce798cdc7a60e7e1460a7299e3c6342a579626d22733e50f526ec2fa19a22b31e8ed50f23cd1fdf94c9154ed3a7609a2f1ff981fe1d3b5c807b281e4683cc6d6315cf95b9ade8641defcb32372f1c126e398ef7a5a2dce0a8a7f68bb74560f8f71837c2c2ebbcbf7fffb42ae1896f13f7c7479a0b46a28b6f55540f89444f63de0378e3d121be09e06cc9ded1c20e65876d36aa0c65e9645644786b620e2dd2ad648ddfcbf4a7e5b1a3a4ecfe7f64667a3f0b7e2f4418588ed35a2458cffeb39b93d26f18d2ab13bdce6aee58e7b99359ec2dfd95a9c16dc00d6ef18b7933a6f8dc65ccb55667138776f7dea101070dc8796e3774df84f40ae0c8229d0d6069e5c8f39a7c299677a09d367fc7b05e3bc380ee652cdc72595f74c7b1043d0e1ffbab734648c838dfb0527d971b602bc216c9619ef0abf5ac974a1ed57f4050aa510dd9c74f508277b39d7973bb2dfccc5eeb0618db8cd74046ff337f0a7bf2c8e03e10f642c1886798d71806ab1e888d9e5ee87d0838c5655cb21c6cb83313b5a631175dff4963772cce9108188b34ac87c81c41e662ee4dd2dd7b2bc707961b1e646c4047669dcb6584f0d8d770daf5d7e7deb2e388ab20e2573d171a88108e79d820e98f26c0b84aa8b2f4aa4968dbb818ea32293237c50ba75ee485f4c22adf2f741400bdf8d6a9cc7df7ecae576221665d7358448818bb4ae4562849e949e17ac16e0be16688e156b5cf15e098c627c0056a9"}],"id":3,"jsonrpc":"2.0"}]
debug:   2023-10-23T04:34:02Z | [ormpipe-relay] [      ethers:crab      ] [receiveRpcResult] [{"jsonrpc":"2.0","result":"0x2c","id":2},{"jsonrpc":"2.0","result":"0x55e25","id":3}]

The estimated gas result is significantly different from the actual transaction gas_used.

from darwinia.

hujw77 avatar hujw77 commented on September 26, 2024

https://darwinia.subscan.io/evm_transaction?block=0x3B9E571AdeCB0c277486036D6097E9C2CCcfa9d9&type=from

from darwinia.

boundless-forest avatar boundless-forest commented on September 26, 2024

https://crab.subscan.io/extrinsic/0xfb9d36b91fbcf8ced34308081573419e5f0702bfa3938f9f18028c7e1498e5a1

https://crab.subscan.io/extrinsic/0xec406df08cd163f9c7a8d8cf8ba92ff2bb564ced5dae39c5d29570d56a322851

image

Both these two transaction's estimated gas result is 352,465, the estimated result does not change over time. Needs to figure out why the estimated gas result is much larger than the actual execute one.

from darwinia.

boundless-forest avatar boundless-forest commented on September 26, 2024

image

from darwinia.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.