Skip to content

Commit 6ac57df

Browse files
committed
Nit
1 parent 3bf8500 commit 6ac57df

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

examples/api.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,9 @@ async function waitForTransaction(tx, signer = null, txName, txMode = TX_MODE_IN
171171
let observable;
172172
if (signer === null) {
173173
console.log(`⬆️ Submitting unsigned ${txName}`);
174-
const bareTx = await tx.getBareTx(txOpts);
174+
// TODO: https://github.com/polkadot-api/polkadot-api/issues/760
175+
// const bareTx = await tx.getBareTx(txOpts);
176+
const bareTx = await tx.getBareTx();
175177
observable = client.submitAndWatch(bareTx);
176178
} else {
177179
observable = tx.signSubmitAndWatch(signer, txOpts);

pallets/transaction-storage/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ pub mod pallet {
353353
/// O(n*log(n)) of data size, as all data is pushed to an in-memory trie.
354354
#[pallet::call_index(0)]
355355
#[pallet::weight(T::WeightInfo::store(data.len() as u32))]
356-
#[pallet::feeless_if(|origin: &OriginFor<T>, data: &Vec<u8>| -> bool { /*TODO: add here correct validation */ true })]
356+
#[pallet::feeless_if(|origin: &OriginFor<T>, data: &Vec<u8>| -> bool { true })]
357357
pub fn store(_origin: OriginFor<T>, data: Vec<u8>) -> DispatchResult {
358358
// In the case of a regular unsigned transaction, this should have been checked by
359359
// pre_dispatch. In the case of a regular signed transaction, this should have been

0 commit comments

Comments
 (0)