Skip to content

Commit

Permalink
sdk/ruby: Chain Core 1.0.0 compatibility
Browse files Browse the repository at this point in the history
Closes #238
  • Loading branch information
dominic authored and iampogo committed Nov 17, 2016
1 parent 6095279 commit 11243c0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion sdk/ruby/lib/chain/transaction.rb
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,11 @@ def to_h
actions: actions,
base_transaction: @base_transaction,
ttl: @ttl,
}
}.select do |k,v|
# TODO: Patches an issue in Chain Core 1.0 where nil values are rejected
# Remove in 1.1.0 or later
v != nil
end
end

# @return [String]
Expand Down

0 comments on commit 11243c0

Please sign in to comment.