Skip to content
This repository was archived by the owner on Aug 20, 2020. It is now read-only.

Commit a2f9226

Browse files
authored
Clone isn't necessary
1 parent 9dcf5df commit a2f9226

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tuts/build-a-dapp/v2.0.0-alpha.6/pallet.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ decl_module! {
246246
let current_block = <system::Module<T>>::block_number();
247247

248248
// Store the proof with the sender and the current block number
249-
Proofs::<T>::insert(&proof, (sender.clone(), current_block));
249+
Proofs::<T>::insert(&proof, (&sender, current_block));
250250

251251
// Emit an event that the claim was created
252252
Self::deposit_event(RawEvent::ClaimCreated(sender, proof));

0 commit comments

Comments
 (0)