Skip to content

Commit

Permalink
chore: fix minor typo in rust code in docs (#566)
Browse files Browse the repository at this point in the history
Co-authored-by: Igor Aleksanov <[email protected]>
  • Loading branch information
Rakesh-lab-stack and popzxc authored Nov 30, 2023
1 parent f15885e commit cae5147
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/advanced/gas_and_fees.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ transaction.
```rust
let gas_remaining_before = vm.gas_remaining();
execute_tx();
let gas_used = gas_remainig_before = vm.gas_remaining();
let gas_used = gas_remaining_before - vm.gas_remaining();
```

## Gas estimation
Expand Down

0 comments on commit cae5147

Please sign in to comment.