effectai / effect-network

Smart contracts and documentation for Effect Network

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Other way of getting vaccount ID

jabbarn opened this issue · comments

the current implementation of releasetask makes use of a for loop to get the vaccount id of the campaign owner. This for loop is too excessive logic wise, it should be possible to get the same result with the find method of the multi_index with the second index ("token" on vaccount).

The problem is that it's common to have multiple vaccount entries for a single vaddress, token_contract combo (one for each token), so find is not really useful as you need to find the correct row.

You check my edits at 004430c