Skip to content
Snippets Groups Projects
Commit 884c91be authored by Gomez Goiri, Aitor's avatar Gomez Goiri, Aitor
Browse files

Showing the information of the transferred asset on bid acceptance

parent 429e7dd3
Branches
Tags
No related merge requests found
...@@ -43,10 +43,6 @@ const simulateCycle = async (arg1, cmd) => { ...@@ -43,10 +43,6 @@ const simulateCycle = async (arg1, cmd) => {
const stockId = await sendToStock(apiClient, { assetId: batchId }) const stockId = await sendToStock(apiClient, { assetId: batchId })
console.log("Stock Id", stockId)
//await createAsset(apiClient, "simulated asset 2")
//await createAsset(apiClient, "simulated asset 3")
await signInAs(apiClient, otherArgs.cement1User, password) await signInAs(apiClient, otherArgs.cement1User, password)
await bidAsset(apiClient, { assetId: stockId, quantity: 1000, price: 2 }) await bidAsset(apiClient, { assetId: stockId, quantity: 1000, price: 2 })
......
...@@ -207,8 +207,12 @@ const bidResponse = ...@@ -207,8 +207,12 @@ const bidResponse =
bidder = inputBidder bidder = inputBidder
} }
await apiClient[`${action}Bid`](assetId, bidder.id) const sentAsset = await apiClient[`${action}Bid`](assetId, bidder.id)
console.log(`Bid from ${bidder.id} ${action}ed for asset ${assetId}`) console.log(
`Bid from ${bidder.id} ${action}ed for asset ${assetId} (sent ${sentAsset.id})`
)
return sentAsset.id
} }
const acceptBid = bidResponse("accept") const acceptBid = bidResponse("accept")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment