lib/zold/wallet.rb
# Returns the network ID of the wallet.
Returns the network ID of the wallet.
Returns the network ID of the wallet .
def network
      n = @head.fetch[0]
      raise "Invalid network name '#{n}'" unless n =~ /^[a-z]{4,16}$/
      n
    end
def network n = @head . fetch [ 0 ] raise "Invalid network name '#{n}'" unless n =~ / ^[a-z]{4,16}$ / n end
Returns the network ID of the wallet.
Returns the network ID of the wallet .