Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
fix comment about ValidateUnsigned trait
Browse files Browse the repository at this point in the history
  • Loading branch information
bernardoaraujor committed Aug 11, 2023
1 parent 63b1029 commit c2368f4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frame/examples/offchain-worker-ping-pong/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -644,9 +644,9 @@ impl<T: Config> Pallet<T> {
// showcase two ways to send an unsigned transaction / unsigned payload (raw)
//
// By default unsigned transactions are disallowed, so we need to whitelist this case by
// writing `UnsignedValidator`. Note that it's EXTREMELY important to carefuly implement
// unsigned validation logic, as any mistakes can lead to opening DoS or spam attack
// vectors. See validation logic docs for more details.
// writing our implementation for the `ValidateUnsigned` trait. Note that it's EXTREMELY
// important to carefuly implement unsigned validation logic, as any mistakes can lead
// to opening DoS or spam attack vectors. See validation logic docs for more details.
SubmitTransaction::<T, Call<T>>::submit_unsigned_transaction(call.into())
.map_err(|()| "Unable to submit unsigned transaction.")?;
}
Expand Down

0 comments on commit c2368f4

Please sign in to comment.