Wrong gas estimates for encrypted ParaTime transfers
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 45/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- go
- 領域
- blockchain, cli
調査の方向性
まず、--encrypted を使用して secp256k1 アカウントからの暗号化された ParaTime transfer を再現します。最初は --gas-limit なしで実行し、その後、報告された limit を指定して実行します。暗号化された transfer の gas estimation の経路を追跡し、標準的な ParaTime transfer と比較します。推定値で十分であり、limit を手動で増やさずにトランザクションが正常に実行されれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Trying to transfer tokens from the secp256k1 account on Sapphire and providing --encrypted incorrectly estimates gas:
- first attempt (no
--gas-limitprovided):
Broadcasting transaction...
Error: Transaction check failed with error: module: core code: 12 message: out of gas (limit: 2318 wanted: 11388)
- second attempt
--gas-limit 11388:
Broadcasting transaction...
Error: Transaction check failed with error: module: core code: 12 message: out of gas (limit: 11388 wanted: 11389)
- third attempt
--gas-limit 11389:
Broadcasting transaction...
Error: Transaction check failed with error: module: core code: 12 message: out of gas (limit: 11389 wanted: 11390)
- fourth attempt
--gas-limit 11390:
Broadcasting transaction...
Transaction included in block successfully.
Round: 3995161
Transaction hash: 1dc1246a30e854dede27d48cb1220b4c19d46521ade38622bbda3ea8c2a4e738
(Transaction result is encrypted.)
Error: Execution failed with error: module: core code: 12 message: core: out of gas (limit: 11390 wanted: 12389)
^^ the transaction was actually submitted and gas was spent, see: https://explorer.oasis.io/mainnet/sapphire/tx/1dc1246a30e854dede27d48cb1220b4c19d46521ade38622bbda3ea8c2a4e738
- fifth attempt
--gas-limit 12389finally worked:
Broadcasting transaction...
Transaction included in block successfully.
Round: 3995186
Transaction hash: 7224d59e6b74d9b2caf55ab40dfe0757cef4f71c66d3a7aba3de1d267d2ea409
(Transaction result is encrypted.)
Execution successful.
Since gas estimates are standard for transactions such as ParaTime transfers and withdrawals, we could probably just hardcode those?
- 主要言語
- Go
- スター
- 80
- フォーク
- 23
- 平均マージ
- 9時間 43分
- マージ済み PR(30日)
- 3
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
oasisprotocol/cli のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
oasisprotocol/cli#709 ·
-
oasisprotocol/cli#717 · 担当者 1 名 ·
-
rofl
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
oasisprotocol/cli#716 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
oasisprotocol/cli#707 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 58/100
oasisprotocol/cli#704 ·
oasisprotocol/cli の issue をすべて見る
似ている issue
-
bug github_actions
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
registrystack/registry-stack#1393 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
JakeChampion/lang#10213 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
oasisprotocol/oasis-sdk#2523 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100