Closed siriusyim closed 6 months ago
async updateMatchingWinner(options: {
matchingBids: MatchingBidsEvm
matchingId: number
}): Promise<Result<any>> {
try {
const winner = await options.matchingBids.getMatchingWinner(
options.matchingId
)
if (winner.ok) {
return await this.update(
{ conditions: [{ matchingId: options.matchingId }] },
{
winner: delegatedFromEthAddress(
winner.data!,
CoinType.MAIN
),
}
)
}
return { ok: true }
} catch (error) {
throw error
}
}
Describe the Bug
change winner to ethaddress in matchingmetadata
Repro Steps
Logging Information
No response
Additional context
No response