The problem
Some newer contracts are written using ink! 5.X.X, and bundled version of @polkadot (currently "10.9.1") panics with: Unable to handle version 5.
Additional context
It would be possible to use the newer version of @polkadot , however
import {options} from "@astar-network/astar-api";
doesn't support updated WsProvider from @polkadot/api "^10.12.4".
const provider = new WsProvider('ws://localhost:9944');
// Below will not work if `WsProvider` comes from @polkadot/api "^10.12.4"
const api = new ApiPromise(options({ provider }));
I have a pretty big contract written with !ink 5.0.0, and downgrading to 4.X.X would be quite painful. Thanks.
The problem Some newer contracts are written using ink! 5.X.X, and bundled version of
@polkadot
(currently "10.9.1") panics with:Unable to handle version 5
.Additional context It would be possible to use the newer version of
@polkadot
, howeverdoesn't support updated
WsProvider
from@polkadot/api
"^10.12.4".I have a pretty big contract written with !ink 5.0.0, and downgrading to 4.X.X would be quite painful. Thanks.