Skip to content
This repository has been archived by the owner on Mar 29, 2023. It is now read-only.

Example only works on localhost #8

Closed
jordaaash opened this issue Nov 1, 2021 · 8 comments
Closed

Example only works on localhost #8

jordaaash opened this issue Nov 1, 2021 · 8 comments

Comments

@jordaaash
Copy link
Collaborator

Tried to run the example in the readme on devnet and testnet instead of localhost:

Contract deployment finished, invoking some contract functions ...
(node:65474) UnhandledPromiseRejectionWarning: Error: ELF error: Unresolved symbol (sol_set_return_data) at instruction #3690 (ELF file offset 0x7268)
@seanyoung
Copy link
Collaborator

Solana v1.8.1 is required. See solana-labs/solana#20620 for example

@BSix5
Copy link

BSix5 commented Nov 17, 2021

Solana v1.8.1 is required. See solana-labs/solana#20620 for example

I upgraded the local solana version to v1.8.1, and I tried again but the same error occurred. Ask for a solution, thank you very much

@seanyoung
Copy link
Collaborator

The sol_set_return_data syscall can be enabled/disabled using a feature. How are you running your solana node? Does the problem go away if you simply run a node with ./scripts/run.sh?

@BSix5
Copy link

BSix5 commented Nov 18, 2021

The sol_set_return_data syscall can be enabled/disabled using a feature. How are you running your solana node? Does the problem go away if you simply run a node with ./scripts/run.sh?

i use https://api.devnet.solana.com cluster , not running my solana node, Where can i find scripts/run.sh you mentioned in order to simply run a node?

Program failed to complete: ELF error: Unresolved symbol (sol_log_data) at instruction #2401 (ELF file offset 0x4a20)

@seanyoung
Copy link
Collaborator

@BSix5 there are different ways of doing this.

You can run up the docker image:

docker run --rm -it -p 8899:8899 -p 8900:8900 solanalabs/solana:v1.8.3

Or if you're running a linux machine, you can build your own solana node:

git clone https://github.com/solana-labs/solana
cd solana
cargo build
./scripts/run.sh

Or you can install the latest edge:

curl -sSfL https://release.solana.com/edge/install

and then

solana-test-validator --reset --quiet

@BSix5
Copy link

BSix5 commented Nov 18, 2021

@BSix5 there are different ways of doing this.

You can run up the docker image:

docker run --rm -it -p 8899:8899 -p 8900:8900 solanalabs/solana:v1.8.3

Or if you're running a linux machine, you can build your own solana node:

git clone https://github.com/solana-labs/solana
cd solana
cargo build
./scripts/run.sh

Or you can install the latest edge:

curl -sSfL https://release.solana.com/edge/install

and then

solana-test-validator --reset --quiet

Thank you very much for your reply, but if I want to publish to the solana master cluster for online use, is it possible now?
I also understand that it is successful in a local cluster, but I now want to use it in an online cluster

@Abubakar672
Copy link

Did you find any solution for this @BSix5 i am also trying to publish it to the devnet or to the test net but receiving the following error, Did you find any way to deploy it on test or devnet


Transaction simulation failed: Error processing Instruction 0: invalid account data for instruction 
    ELF error: Unresolved symbol (sol_log_data) at instruction #1784 (ELF file offset 0x36d8)
/Users/abubakarmujahid/Desktop/Solang test/node_modules/@solana/web3.js/lib/index.cjs.js:6591
      throw new SendTransactionError('failed to send transaction: ' + res.error.message, logs);
            ^

SendTransactionError: failed to send transaction: Transaction simulation failed: Error processing Instruction 0: invalid account data for instruction

@seanyoung
Copy link
Collaborator

All the required features are now enabled on testnet, devnet and mainnet-beta

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants