(assetCid: string, blockchainInfo)
| 297 | } |
| 298 | |
| 299 | export async function pull(assetCid: string, blockchainInfo) { |
| 300 | const latestCommit = await getLatestCommitSummary(assetCid, blockchainInfo); |
| 301 | if (latestCommit != null) { |
| 302 | const assetTree = await getAssetTree(latestCommit.commit.assetTreeCid); |
| 303 | return assetTree; |
| 304 | } else { |
| 305 | return null |
| 306 | } |
| 307 | } |
| 308 | |
| 309 | //export async function add(assetCid, assetUpdates, blockchainInfo) { |
| 310 | // const latestAssetTree = await pull(assetCid, blockchainInfo); |
nothing calls this directly
no test coverage detected