Skip to content

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

@netlify
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 2 times, most recently from dc1704f to a812476 Compare November 4, 2024 17:15
@matevz matevz force-pushed the matevz/feature/subtract-fee branch 3 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
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
@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.

3 participants