lib/stellar/transaction_envelope.rb in stellar-base-0.0.18 vs lib/stellar/transaction_envelope.rb in stellar-base-0.0.19

- old
+ new

@@ -13,10 +13,10 @@ # @return [Boolean] true if all signatures are from the provided key_pairs and validly sign the tx's hash def signed_correctly?(*key_pairs) hash = tx.hash return false if signatures.empty? - key_index = key_pairs.index_by(&:public_key_hint) + key_index = key_pairs.index_by(&:signature_hint) signatures.all? do |sig| key_pair = key_index[sig.hint] break false if key_pair.nil? \ No newline at end of file