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

Number returned is gas in units not octa #581

Merged
merged 1 commit into from
Nov 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ pub struct UserTransaction {
pub expiration_timestamp_secs: u64,
pub parent_signature_type: String,
pub gas_fee_payer_address: Option<String>,
pub gas_used_octa: u64,
pub gas_used_unit: u64,
pub gas_unit_price: u64,
pub max_gas_octa: u64,
pub storage_refund_octa: u64,
Expand Down Expand Up @@ -105,7 +105,7 @@ impl UserTransaction {
entry_function_id_str: get_entry_function_from_user_request(user_request)
.unwrap_or_default(),
epoch,
gas_used_octa: txn_info.gas_used,
gas_used_unit: txn_info.gas_used,
gas_fee_payer_address,
is_transaction_success: txn_info.success,
storage_refund_octa: fee_statement
Expand Down
Loading