Skip to content

Commit

Permalink
one more lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ash-burnt committed Jul 2, 2024
1 parent 316b589 commit 8df5dc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/account/src/auth/jwt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 8df5dc5

Please sign in to comment.