wallet_requestSnaps and wallet_invokeSnap use an object as params, but on the docs, the params are currently being wrapped in an array.
The spec and examples should be updated to use this format:
wallet_requestSnaps
typeRequest={method: 'wallet_requestSnaps';params: Record<SnapId,{version?: SemVerVersion;}>;}wallet_invokeSnap
typeRequest={method: 'wallet_invokeSnap',params: {snapId: SnapId;request: {method: string;params: Json;}}}
wallet_requestSnapsandwallet_invokeSnapuse an object as params, but on the docs, the params are currently being wrapped in an array.The spec and examples should be updated to use this format:
wallet_requestSnapswallet_invokeSnap