i’m trying to require a libraby, and then using a function from it. My code:
function(properties, context) {
const taquito = require("@taquito/taquito");
const tezos = new(taquito.TezosToolKit(""))
}
I already tried the const { TezosToolKit } = require("@taquito/taquito") too, but doesn’t worked too.
I’m doing this on Actions because another lib that i’m using uses require function, that is not usable on Elements tab.