Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Wrong gas estimates for encrypted ParaTime transfers

オープン
#248 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
go
領域
blockchain, cli

調査の方向性

まず、--encrypted を使用して secp256k1 アカウントからの暗号化された ParaTime transfer を再現します。最初は --gas-limit なしで実行し、その後、報告された limit を指定して実行します。暗号化された transfer の gas estimation の経路を追跡し、標準的な ParaTime transfer と比較します。推定値で十分であり、limit を手動で増やさずにトランザクションが正常に実行されれば完了です。

索引モデルが issue の本文から書いたものです。

説明

bug

Trying to transfer tokens from the secp256k1 account on Sapphire and providing --encrypted incorrectly estimates gas:

  1. first attempt (no --gas-limit provided):
Broadcasting transaction...
Error: Transaction check failed with error: module: core code: 12 message: out of gas (limit: 2318 wanted: 11388)
  1. 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)
  1. 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)
  1. 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

  1. fifth attempt --gas-limit 12389 finally 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

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

oasisprotocol/cli のほかの issue

oasisprotocol/cli の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。