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
I propose that we change the createInstance method to accept two arguments (provider and options):
constpredicate=PredicateConditionalInputsAbi__factory.createInstance(provider,{data: undefined,// Left in to show transitionconfigurables: {MAKER: aliceWallet.address.toB256()}});
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Currently, the typegen predicate accepts three parameters for initialisation:
provider
data
configurables
fuels-ts/packages/abi-typegen/src/templates/predicate/factory.hbs
Line 60 in 6321c16
If the predicate has no data, but has configurable constants, it is initialised as follows:
I propose that we change the
createInstance
method to accept two arguments (provider
andoptions
):Reference: #2789 (comment)
Beta Was this translation helpful? Give feedback.
All reactions