Consensys / quorum

A permissioned implementation of Ethereum supporting data privacy
https://www.goquorum.com/
GNU Lesser General Public License v3.0
4.69k stars 1.3k forks source link

Why can't raft networks built from documents interact with smart contracts #1697

Open YU-YUEHAO opened 8 months ago

YU-YUEHAO commented 8 months ago

I established three points of the raft network through documentation and successfully deployed the contract, but could not interact with the contract The name method I used to call erc721 in go is just a call method but with an error I have clearly successfully connected the node with the correct address and abi

微信图片_20240321172829

<img width="625" alt="微信图片_20240321172829" src="https://github.com/Consensys/quorum/assets/72842641/e6859d25-16a6-4b6a-a0fc-9205fc5ff0c2">

YU-YUEHAO commented 8 months ago

bin/bash

export ADDRESS=$(grep -o '"address": "[^"]"' ./data/keystore/accountKeystore | grep -o '"[^"]"$' | sed 's/"//g') export PRIVATE_CONFIG=ignore geth --datadir data \ --networkid 1337 --nodiscover --verbosity 5 \ --syncmode full --nousb \ --raft --raftport 53000 --raftblocktime 300 --emitcheckpoints \ --http --http.addr "0.0.0.0" --http.port 22000 --http.corsdomain "" --http.vhosts "" \ --ws --ws.addr "0.0.0.0" --ws.port 32000 --ws.origins "" \ --http.api admin,trace,db,eth,debug,miner,net,shh,txpool,personal,web3,quorum,raft \ --ws.api admin,trace,db,eth,debug,miner,net,shh,txpool,personal,web3,quorum,raft \ --unlock ${ADDRESS} --allow-insecure-unlock --password ./data/keystore/accountPassword \ --port 30303

This is my startup file