Content
@
https://opensea.io/collection/dev-21
0 reply
0 recast
2 reactions
carter
@carter
alright what do you prefer here
12 replies
2 recasts
26 reactions
Pierrick
@pierrick
I’m not familiar with the lib but I’d say the first one. I wonder if simulate shouldn’t be a standalone function that you could use this way: await clanker.simulate(‘deploy(token)’, params, options); That way it is clear this function will only simulate a transaction and it avoids making mistakes by forgetting to call simulate after deploy.
1 reply
0 recast
1 reaction
carter
@carter
yeah i was going back and forth on this because `deploy` is such a serious action. but also if someone is loading up a hot wallet i think it's reasonable to assume they've tested their code (or at least not something i should be defending against in sdk design) i could also make the onchain enactment a separate fn:
1 reply
0 recast
1 reaction