api3dao / api3-dao-dashboard

API3 DAO dashboard
api3.eth/
14 stars 14 forks source link

Update @api3/promise-utils #395

Closed mcoetzee closed 1 year ago

mcoetzee commented 1 year ago

There is a breaking change updating to v0.4. The go() function now only accepts a function that returns a promise. E.g. usage that needs to be migrated:

const goVestingData = await go(
-  api3Pool.getUser(userAccount)
+  () => api3Pool.getUser(userAccount)
);