You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The idea is to create a class AlastriaProvider which sets the provider the user want (web3, ehter, ...) and checks if this provider has the functions we use in the lib (functions as .eth.abi.encodeFunctionCall), so if any of those functions does not exist, this class will throw an error saying that "this provider is not suported" (yet?).
Also, this class will create a default provider if none is passed as argument. This means to create a new account too.
Then, the lib functions need to be modified to receive an AlastriaProvider instance. Also, this new argument should be the last argument in the function as it will be optional (if none setted, default is created as explained before).
The text was updated successfully, but these errors were encountered:
The idea is to create a class
AlastriaProvider
which sets the provider the user want (web3, ehter, ...) and checks if this provider has the functions we use in the lib (functions as.eth.abi.encodeFunctionCall
), so if any of those functions does not exist, this class will throw an error saying that "this provider is not suported" (yet?).Also, this class will create a default provider if none is passed as argument. This means to create a new account too.
Then, the lib functions need to be modified to receive an
AlastriaProvider
instance. Also, this new argument should be the last argument in the function as it will be optional (if none setted, default is created as explained before).The text was updated successfully, but these errors were encountered: