Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
XCM (Cross-Consensus Message Format) is a communication format between consensus systems
3
votes
2
answers
191
views
How to see account id origin when receiving an XCM message. Currently the origin contains th...
Currently to process an XCM message in my own pallet call, I inherit the config of my pallet from frame_system + pallet_xcm to have a representable origin:
#[pallet::config]
pub trait Config: frame_system … like ensure_xcm from the pallet_xcm like this:
ensure_xcm(<T as Config>::Origin::from(origin))
My problem is that ensure_xcm gets the origin as the parachain id, but I want the account that created the xcm …
1
vote
How does the encoded transaction in `Transact` turn into decoded transaction `call` when exe...
first byte: pallet id,
second byte: call position in the order defined on the pallet,
third byte and onwards: arguments encoded in SCALE, and put in the order defined on the fn parameters definition …
3
votes
0
answers
35
views
Why is the index of a pallet a u32(usize) instead of u8 when queried?
I'm implementing a flow where I first ask what index a pallet has with the QueryPallet xcm instruction, and then construct a call to use with Transact. …
6
votes
1
answer
211
views
How to avoid impersonation when using DescendOrigin XCM
The way I'm getting a signed account from an xcm origin is through the OriginConverter type defined on xcm_executor::Config in the runtime. … (
target: "xcm::origin_conversion",
"SignedAccountId32AsNative origin: {:?}, kind: {:?}" …
1
vote
1
answer
145
views
Runtime panic when teleporting dot from relay to parachain locally
recognizes the relay chain as a teleporter.
pub type TrustedTeleporters = (xcm_builder::Case<DotFromPolkadot>,);
From what I understood the actual execution of teleporting is already implemented in the xcm …
2
votes
1
answer
144
views
Invalid Incoming XCMP message data
/xcm-simulator/xcm-emulator/src/lib.rs:90:5
18: xcm_emulator_example::_process_horizontal_messages
at /Users/juan/Desktop/acurast-jobs/xcm-simulator/xcm-emulator/src/lib.rs:381:8
19: xcm_emulator_example … at /Users/juan/Desktop/acurast-jobs/xcm-simulator/xcm-emulator/src/lib.rs:272:5
21: xcm_emulator_example::tests::new_fungible_reserve_transfer
at . …