Open
Description
Hey,
I've been trying to use import_contract
for a contract where RPC refuses to download the state, because it is too large.
I know that the beta RPC doesn't have this limitation, so I tried enabling unstable
feature to set up custom worker:
let custom_worker = near_workspaces::custom("https://beta.rpc.mainnet.near.org").await?;
let contract = worker
.import_contract(&"app.chess-game.near".parse()?, &custom_worker)
.dest_account_id(contract.id())
.with_data()
.transact()
.await?;
let states = custom_worker
.view_state(&"app.chess-game.near".parse()?)
.await?;
However I get an error for both import_contract
or view_state
:
Error: Failed to connect to RPC service https://beta.rpc.mainnet.near.org within 10 seconds
Caused by:
error while parsing method call result: [missing field `version`]
So I am wondering is there any other way to use import_contract
with large contract state?
Metadata
Assignees
Labels
No labels
Type
Projects
Status
NEW❗