You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Experiencing problems? Have you tried our Stack Exchange first?
This is not a support question.
Description of bug
I have two account for offchain woker. First account is no money.
2. send_signed_transaction get error: `InvalidTransaction::Payment` . But second account is has money to `send_signed_transaction`
and can **let who = ensure_signed(origin)?;**
(offchain call) Error submitting a transaction to the pool: Transaction pool error: Invalid transaction validity: InvalidTransaction::Payment
let signer = Signer::<T, T::AuthorityId>::any_account();
let result = signer.send_signed_transaction(|_acct|
Call::submit_number_signed{number});
let accounts = self.accounts_from_keys();
for account in accounts.into_iter() {
let res = f(&account);
if let Some(res) = res {
return Some((account, res))
}
}
None
What's the problem cause?
I think it'ssend_signed_transaction should be success by second account call func.
But for account in accounts.into_iter() { first loop use no money account and stop for.
I don't know it's correct for stop for and send_signed_transaction failed. Because second account has money to ensure_signed call dispatch func.
Is there an existing issue?
Experiencing problems? Have you tried our Stack Exchange first?
Description of bug
2. send_signed_transaction get error: `InvalidTransaction::Payment` . But second account is has money to `send_signed_transaction` and can **let who = ensure_signed(origin)?;**
(offchain call) Error submitting a transaction to the pool: Transaction pool error: Invalid transaction validity: InvalidTransaction::Payment
https://github.com/paritytech/substrate/blob/master/frame/system/src/offchain.rs#L206-L213
What's the problem cause?
I think it's
send_signed_transaction
should be success by second account call func.But
for account in accounts.into_iter() {
first loop use no money account and stop for.I don't know it's correct for stop for and
send_signed_transaction
failed. Because second account has money toensure_signed
call dispatch func.Steps to reproduce
transfer accounts money
check log
Thank you very much.
The text was updated successfully, but these errors were encountered: