Two Can Bus Shields over SPI

I want to use two Mcp2515 Can Bus Shields with my Arduino Leonardo Micro. I want to built a Can Bus Repeater/Blocker. One Shield is no problem to use. But i don't know how to handle the library for two shields. I use this library: https://github.com/Seeed-Studio/CAN_BUS_Shield?files=1

One shield on CS - > 9 and one on CS - > 10

Where is the problem? The constructor has one parameter: the CS pin. Just specify the correct pin and you have your communication object.

But how to interact with two shields in one Sketch. Could you explane that pls?

But how to interact with two shields in one Sketch.

Make one object for each shield and use the methods on it. I cannot see any problem. Please explain.

#include "mcp_can.h"

MCP_CAN mcp1(8);
MCP_CAN mcp2(9);

void setup() {
  mcp1.begin(CAN_100KBPS);
  mcp2.begin(CAN_100KBPS);
}

void loop() {
  // do your stuff here
}