lian / bitcoin-ruby

bitcoin utils and protocol in ruby.
Other
922 stars 322 forks source link

Fix get_addresses to return array of addresses #249

Closed tluthra closed 6 years ago

tluthra commented 6 years ago

For all the script types, get_addresses returns an array, except for the case where it is_witness_v0_keyhash? or it is_witness_v0_scripthash?. This fixes the contract so this won't error out when iterating over addresses, and adds a spec to prevent regressions.