The example should work if you generate the metadata with
subxt metadata --url ws://localhost:9944 -o metadata.scale
It will fail with Error: Metadata(IncompatibleCodegen)
when the code is generated with subxt metadata --pallets "Balances,Timestamp,Contracts,ContractsEvm,System" --url ws://localhost:9944 -o metadata.scale
Here is the repro walk through:
cd templates/minimal && cargo build
./target/debug/minimal-template-node --dev
The example should work if you generate the metadata with
subxt metadata --url ws://localhost:9944 -o metadata.scale
It will fail with
Error: Metadata(IncompatibleCodegen)
when the code is generated withsubxt metadata --pallets "Balances,Timestamp,Contracts,ContractsEvm,System" --url ws://localhost:9944 -o metadata.scale