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

cmd: Add subtract-fee flag #257

Merged
merged 1 commit into from
Nov 13, 2024
Merged

cmd: Add subtract-fee flag #257

merged 1 commit into from
Nov 13, 2024

Conversation

matevz
Copy link
Member

@matevz matevz commented Jun 20, 2024

This PR decouples gas fee computation and signing the transactions. If --subtract-fee is provided, then the fee is subtracted from the transaction before signing it.

Note: Gas estimation for consensus transactions is higher for 8, because the nonce and the fee objects are now populated in the tx before estimating the gas.

Implements #247

Copy link

netlify bot commented Jun 20, 2024

Deploy Preview for oasisprotocol-cli canceled.

Name Link
🔨 Latest commit 2c49a09
🔍 Latest deploy log https://app.netlify.com/sites/oasisprotocol-cli/deploys/67332ec77cb5ac00089e8a59

@matevz matevz self-assigned this Oct 8, 2024
@matevz matevz force-pushed the matevz/feature/subtract-fee branch 2 times, most recently from cfe754d to 9bfa8f0 Compare October 25, 2024 15:10
@matevz matevz force-pushed the matevz/feature/subtract-fee branch 2 times, most recently from 91ad28a to b166d1b Compare November 4, 2024 15:52
@matevz matevz marked this pull request as ready for review November 4, 2024 17:09
@matevz matevz force-pushed the matevz/feature/subtract-fee branch 5 times, most recently from e72f670 to c0881a8 Compare November 11, 2024 12:34
@matevz matevz requested a review from kostko November 11, 2024 12:37
@matevz matevz force-pushed the matevz/feature/subtract-fee branch 2 times, most recently from b4f3e83 to 0ef0488 Compare November 11, 2024 13:50
cmd/account/account.go Outdated Show resolved Hide resolved
cmd/account/transfer.go Outdated Show resolved Hide resolved
Used by:
- oasis account transfer --paratime xyz
- oasis account trnasfer --no-paratime
- oasis account withdraw
@matevz matevz force-pushed the matevz/feature/subtract-fee branch from 0ef0488 to 2c49a09 Compare November 12, 2024 10:32
@kostko kostko merged commit f96aada into master Nov 13, 2024
4 checks passed
@kostko kostko deleted the matevz/feature/subtract-fee branch November 13, 2024 15:07
@kostko
Copy link
Member

kostko commented Nov 13, 2024

Merged to fix examples.

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

Successfully merging this pull request may close these issues.

2 participants