From 8df5dc576e282daab78fc2dd444642a4dfb0ff0f Mon Sep 17 00:00:00 2001 From: Ash Date: Tue, 2 Jul 2024 17:32:50 +0100 Subject: [PATCH] one more lint --- contracts/account/src/auth/jwt.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/account/src/auth/jwt.rs b/contracts/account/src/auth/jwt.rs index 8500f9b..a881176 100644 --- a/contracts/account/src/auth/jwt.rs +++ b/contracts/account/src/auth/jwt.rs @@ -55,7 +55,7 @@ pub fn verify( components.next().ok_or(InvalidToken)?; // ignore the header, it is not currently used let payload_bytes = components.next().ok_or(InvalidToken)?; let payload = URL_SAFE_NO_PAD.decode(payload_bytes)?; - let claims: Claims = cosmwasm_std::from_slice(payload.as_slice())?; + let claims: Claims = cosmwasm_std::from_json(payload.as_slice())?; // make sure the provided hash matches the one from the tx if tx_hash.eq(&claims.transaction_hash) {