oceanprotocol / pm

Zenhub needs each issue associated with one repo. This repo is a workaround, to mark issues that span >1 repos.
4 stars 0 forks source link

For publish, reduce tx # to 1 #203

Open alexcos20 opened 1 year ago

alexcos20 commented 1 year ago

Now, the publish flow has two transactions:

Why is that? because in DDO you need both nftAddress and datatoken address. So you need the 1st tx to be confirmed to get them

Can it be reduced ? Yes. We can pre-determine the nftAdddress & datatoken address, use those values to create the ddo and then have a helper function that bundles both in one tx