You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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:However I get an error for both
import_contract
orview_state
:So I am wondering is there any other way to use
import_contract
with large contract state?The text was updated successfully, but these errors were encountered: