api-specs
api-specs copied to clipboard
Invalid `wallet_requestSnaps` and `wallet_invokeSnap` specs
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
type Request = {
method: 'wallet_requestSnaps';
params: Record<SnapId, { version?: SemVerVersion; }>;
}
wallet_invokeSnap
type Request = {
method: 'wallet_invokeSnap',
params: {
snapId: SnapId;
request: {
method: string;
params: Json;
}
}
}
rel #193