0

I'm trying to use etherjs in my flutter project and the ethers for flutter does not have all the functions that are available in the original package. Can I refer to this How to use JavaScript in Flutter Apps? YouTube video to move all the functions that I needed into a `JS file.

The code in the Etherjs Github has this require("@ethersproject/logger"); which I'm not sure if I can include that as well.Can I run npm install to get the package or what should I do? I need some advice.

var logger_1 = require("@ethersproject/logger");
var _version_1 = require("./_version");
var logger = new logger_1.Logger(_version_1.version);

function addSlice(array) {
    if (array.slice) {
        return array;
    }
    array.slice = function () {
        var args = Array.prototype.slice.call(arguments);
        return addSlice(new Uint8Array(Array.prototype.slice.apply(array, args)));
    };
    return array;
}
TylerH
  • 20,799
  • 66
  • 75
  • 101
Leo
  • 179
  • 9
  • I think It will help you [Link To Another similar problem](https://stackoverflow.com/questions/66145501/how-to-use-a-js-library-and-a-js-function-in-a-flutter-mobile-app) –  Dec 05 '22 at 09:21

0 Answers0