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
I have created an example pallet from the tutorials and i want to interact with that pallet programatically.
#[pallet::call]impl<T:Config>Pallet<T>{#[pallet::call_index(1)]#[pallet::weight((T::WeightInfo::create_claim(),Pays::No))]pubfncreate_claim(origin:OriginFor<T>,claim:T::Hash) -> DispatchResult{// Check that the extrinsic was signed and get the signer.// This function will return an error if the extrinsic is not signed.let sender = ensure_signed(origin)?;// let sender = "157VKbUv5RAucscCSXL8AgLdKtjB5gm7JTGQsbq8MZcQpXwA".to_string();// Verify that the specified claim has not already been stored.ensure!(!Claims::<T>::contains_key(&claim),Error::<T>::AlreadyClaimed);// Store the claim with the sender and block number.Claims::<T>::insert(&claim,&sender);// Emit an event that the claim was created.Self::deposit_event(Event::CreateClaim{who: sender, claim });Ok(())}}
using the package i am able to create the call and invoke the submitExtrinsic
This could be due to the fact that your chain has different SignedExtra defined. This might require a different kind of SignatureOptions that use something else instead of the normal Tip that we provide.
I have created an example pallet from the tutorials and i want to interact with that pallet programatically.
using the package i am able to create the call and invoke the submitExtrinsic
The output of the code is throwing an error in the last stage which is not giving out much info on why its happening
but when i used the hex encoded values on the frontend template and invoked
submitExtrinsic
i got(when i used the ext hex value pre-signing)
(when using the ext hex value after signing)
the error seems to suggest bad signature and i followed everything from the
*_test.go
files. Any help would be appreciatedThe text was updated successfully, but these errors were encountered: