Use the chainId value from the pallet as the one for queueing transactions.
Fixes the bug introduced by #461
Dynamic Transaction
There is an issue with creating dynamic transactions and TypedChainId, for some reason it does not work and returns this error:
Error encoding from dynamic value: Value shape is wrong; expected type ID 49, but got value Value { value: Composite(Named([("name", Value { value: Primitive(String("EVM")), context: () }), ("values", Value { value: Composite(Unnamed([Value { value: Primitive(U128(5001)), context: () }])), context: () })])), context: () }, which could not be coerced into it
Logs
2023-04-20T20:15:04.027954Z ERROR webb_probe: kind: tx_queue, ty: "SUBSTRATE", chain_id: 1081, errored: true, error: Error encoding from dynamic value: Value shape is wrong; expected type ID 49, but got value Value { value: Composite(Named([("name", Value { value: Primitive(String("EVM")), context: () }), ("values", Value { value: Composite(Unnamed([Value { value: Primitive(U128(5001)), context: () }])), context: () })])), context: () }, which could not be coerced into it
at crates/tx-queue/src/substrate/substrate_tx_queue.rs:140
in webb_relayer_tx_queue::substrate::substrate_tx_queue::run with node: 1081
Summary of changes
Dynamic Transaction
There is an issue with creating dynamic transactions and
TypedChainId
, for some reason it does not work and returns this error:Logs
What I have tried and did not work
Value::from_bytes(src_chain_id.encode())
Value::u128(u128::from(self.src_chain_id.chain_id())
Reference issue to close (if applicable)
Code Checklist