mirror of
https://github.com/aljazceru/nutshell.git
synced 2025-12-21 02:54:20 +01:00
Token state check with Y (#468)
* Token state check with Y * remove backwards compat for v1
This commit is contained in:
@@ -338,7 +338,7 @@ async def check_state(
|
||||
) -> PostCheckStateResponse:
|
||||
"""Check whether a secret has been spent already or not."""
|
||||
logger.trace(f"> POST /v1/checkstate: {payload}")
|
||||
proof_states = await ledger.check_proofs_state(payload.secrets)
|
||||
proof_states = await ledger.check_proofs_state(payload.Ys)
|
||||
return PostCheckStateResponse(states=proof_states)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user