blockchain-carbon-accounting icon indicating copy to clipboard operation
blockchain-carbon-accounting copied to clipboard

not able to issue carbon tracker tokens

Open sichen1234 opened this issue 2 years ago • 1 comments

This continues from https://wiki.hyperledger.org/display/CASIG/2022-12-05+Peer+Programming+Call

I just checked (see https://youtu.be/l-WXuLLkVoM)

The postgresql tracker table is empty.

My .env does have

LEDGER_CARBON_TRACKER_ADDRESS="0x610178dA211FEF7D417bC0e6FeD39F05609AD788"

I think there is something wrong with the api-server. See the attached log files

api-server.log hardhat.log

sichen1234 avatar Dec 10 '22 01:12 sichen1234

@sichen1234 I recloned the project but was unable to reproduce the errors in hardhat.log and api-server.log. Looking at the hardhat.log i noticed the following

eth_blockNumber
eth_call
  WARNING: Calling an account which is not a contract
  From:                0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266
  To:                  0xa51c1fc2f0d1a1b8494ed1fe312d7c3a78ed91c0

To reproduce the errors I set LEDGER_CARBON_TRACKER_ADDRESS=0xa51c1fc2f0d1a1b8494ed1fe312d7c3a78ed91c0 in .env

check if LEDGER_CARBON_TRACKER_ADDRESS (0x610178dA211FEF7D417bC0e6FeD39F05609AD788) is being overwritten somewhere in your env to the incorrect address from the log

brioux avatar Dec 10 '22 05:12 brioux