Class: TezosClient::RawOperationArray
- Inherits:
-
Operation
- Object
- Operation
- TezosClient::RawOperationArray
show all
- Defined in:
- lib/tezos_client/operations/raw_operation_array.rb
Instance Method Summary
collapse
Methods inherited from Operation
#initialize
Instance Method Details
#post_initialize(raw_operations:, **args) ⇒ Object
5
6
7
|
# File 'lib/tezos_client/operations/raw_operation_array.rb', line 5
def post_initialize(raw_operations:, **args)
@raw_operations = raw_operations.clone
end
|
#rpc_operation_args ⇒ Object
9
10
11
12
13
14
15
16
17
18
19
20
|
# File 'lib/tezos_client/operations/raw_operation_array.rb', line 9
def rpc_operation_args
@rpc_operation_args ||= begin
initial_counter = rpc_interface.contract_counter(@args.fetch(:from)) + 1
raw_operations.map.with_index do |operation, index|
counter = (initial_counter + index)
operation.merge(
counter: counter.to_s
)
end
end
end
|