Skip to content

Commit

Permalink
fix(rpc): validate required op properties
Browse files Browse the repository at this point in the history
  • Loading branch information
vhf committed Jul 5, 2024
1 parent 12e6636 commit fe567cc
Show file tree
Hide file tree
Showing 5 changed files with 437 additions and 192 deletions.
3 changes: 2 additions & 1 deletion lib/fee.ex
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ defmodule Tezex.Fee do
minimal_nanotez_per_gas_unit =
Keyword.get(opts, :minimal_nanotez_per_gas_unit, @minimal_nanotez_per_gas_unit)

size = byte_size(ForgeOperation.operation(content)) + extra_size
{:ok, forged_content} = ForgeOperation.operation(content)
size = byte_size(forged_content) + extra_size

fee =
@minimal_fees + @minimal_mutez_per_byte * size +
Expand Down
Loading

0 comments on commit fe567cc

Please sign in to comment.