dartcoin / dart-bitcoin

Bitcoin library written in Google Dart (dartlang.org).
http://dartcoin.org
MIT License
33 stars 17 forks source link

Undefined name 'E' #20

Open RdeWilde opened 6 years ago

RdeWilde commented 6 years ago

Line gives an error:

Undefined name 'E'

https://github.com/dartcoin/dart-bitcoin/blob/5404961c88e6226a9564e6c7c00e998a8c6f799d/lib/src/core/bloom_filter.dart#L79

Using Dart2. Should it just be lowercase?

stevenroose commented 6 years ago

It seems that the variable E changed in Dart v2.

So, this is the one we need: https://api.dartlang.org/stable/2.0.0/dart-math/e-constant.html