Error: Compiler 4.0.0 support only consensus protocol 4(Lima)

Hi,

Sorry about so much questions. I’m trying to use the sdk in a node example, like show here

I connected the sdk to a local node, and compiled the contract

let bytecode = await ae.contractCompile(getContractSource());

But when I try to deploy

let deployed = await bytecode.deploy()

I’m getting this error:

(node:3267) UnhandledPromiseRejectionWarning: Error: Compiler 4.0.0 support only consensus protocol 4(Lima)

If I deploy the contract manualy with aeproject deploy, it is deployed, but then, when its call with callStatic I’m getting the same error.

Thanks

what compilerUrl did you specify?

I’m using this urls:

NODE_URL=“http://localhost:3003
INTERNAL_URL=“http://localhost:3003
COMPILER_URL=“http://localhost:3080

This are the docker ps

CONTAINER ID        IMAGE                            COMMAND                  CREATED              STATUS                        PORTS                                      NAMES
276905ed842b        aeternity/aesophia_http:v4.0.0   "/docker-entrypoint.…"   40 seconds ago       Up 37 seconds (healthy)       0.0.0.0:3080->3080/tcp                     aeternity-daily-payments_compiler_1
0db75d0283e9        aeternity/aeternity:v5.0.2       "bin/aeternity conso…"   About a minute ago   Up About a minute (healthy)   3013-3015/tcp, 3113/tcp                    aeternity-daily-payments_node2_1
fa2cc268f1e3        aeternity/aeternity:v5.0.2       "bin/aeternity conso…"   About a minute ago   Up About a minute (healthy)   3013-3015/tcp, 3113/tcp                    aeternity-daily-payments_node1_1
ae47f24f9d35        nginx:1.13.8                     "nginx -g 'daemon of…"   About a minute ago   Up About a minute             80/tcp, 0.0.0.0:3001-3003->3001-3003/tcp   aeternity-daily-payments_proxy_1
a91d44092f21        aeternity/aeternity:v5.0.2       "bin/aeternity conso…"   About a minute ago   Up About a minute (healthy)   3013-3015/tcp, 3113/tcp                    aeternity-daily-payments_node3_1

As it seems you are using aeproject, maybe @martingrigorov.chain can help you

I have change to

NODE_URL=“http://localhost:3001
INTERNAL_URL=“http://localhost:3001
COMPILER_URL=“http://localhost:3080

And now it is already deployed

Thanks for the help!

3 Likes