Travis Reeder
Travis Reeder
I believe you could get code with [eth_getCode](https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_getcode) and potentially all the storage via [eth_getStorageAt](https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_getstorageat) (guessing). Now I have no idea how you'd write that to the new contract storage...
Alternatively, we could do it for contracts that do support such an iteration. https://docs.openzeppelin.org/docs/token_erc721_erc721token#tokenByIndex Too bad ERC-20's don't typically have something like this for all token holders.
Initial test seems to work! One big issue though, the camera doesn't turn off after the scan completes. I believe this might be related: https://github.com/jbialobr/JsQRScanner/issues/23
Yep, shuts camera down now. 👍
FYI, to test this, use this in pubspec.yaml: ```yaml barcode_scan: barcode_scan_web: git: url: git://github.com/fercarcedo/flutter_barcode_reader.git ref: web-support path: flutter_barcode_reader_web/ ```
Something seems to be going wrong when you make a production build, it can't find the qrcode scanner js file I believe, getting a 404 page instead. 
I'm guessing these assets needs to be defined in your pubspec.yaml @fercarcedo : https://flutter.dev/docs/development/ui/assets-and-images#bundling-of-package-assets They aren't in the build/web folder after a `flutter build web`.
@fercarcedo Not trying to tell you how to work here, but would you mind not force-pushing to this pull request? Makes it hard to figure out what you changed (and...
The asset thing I found weird too, I'm not sure if it's just for flutter web, but it doesn't seem to match the documentation. If you put them in the...
@devtronic I'm fairly new to flutter, but is embedding the JS rather than linking to a CDN the recommended way to do it for these web components? I couldn't find...